bootstrap-ui icon indicating copy to clipboard operation
bootstrap-ui copied to clipboard

Helper class could not be found

Open sdanko opened this issue 11 years ago • 20 comments

When loading helpers in View\AppView I get the following error: Fatal error: [Cake\View\Exception\MissingHelperException] Helper class HtmlHelper could not be found

sdanko avatar Jun 23 '15 22:06 sdanko

Can you gist your AppView class?

josegonzalez avatar Jun 24 '15 01:06 josegonzalez

https://gist.github.com/sdanko/f46714ff050bae793e91

sdanko avatar Jun 24 '15 20:06 sdanko

Sure you loaded the plugin correctly?

dereuromark avatar Jun 24 '15 20:06 dereuromark

I addes this line to my bootstrap.php:

Plugin::load('BootstrapUI');

sdanko avatar Jun 24 '15 20:06 sdanko

Did you install the plugin using composer?

jadb avatar Jun 25 '15 13:06 jadb

Yes, I used the command : composer require friendsofcake/bootstrap-ui:~0.3 in the root folder of my app.

sdanko avatar Jun 25 '15 19:06 sdanko

Any ideas?

sdanko avatar Jun 27 '15 13:06 sdanko

Hi, I have the same problemen, did u get it working ?

sillentkil avatar Jul 21 '15 14:07 sillentkil

Hi @sillentkil for testing your issue I have tried a fresh copy as following:

composer create-project --prefer-dist cakephp/app bookmarker
cd bookmarker
composer require friendsofcake/bootstrap-ui
"bin/cake" server

update the src\View\AppView.php as in https://gist.github.com/sdanko/f46714ff050bae793e91 go to http://localhost:8765/

every thing is OK

eymen-elkum avatar Jul 21 '15 14:07 eymen-elkum

Weird, i did the following: composer create-project --prefer-dist cakephp/app composer require friendsofcake/bootstrap-ui update the src\View\AppView.php

and getting the following error: http://cosmicancestors.ritepro.nl/

What is the "bin/cake" server part?

Many thanks, Ricardo

sillentkil avatar Jul 21 '15 14:07 sillentkil

bin\cake server is just to run a local testing server

eymen-elkum avatar Jul 21 '15 14:07 eymen-elkum

@sillentkil What's your PHP version?

ADmad avatar Jul 21 '15 14:07 ADmad

i'm using PHP 5.5.9-1 ubuntu 4.11

sillentkil avatar Jul 21 '15 14:07 sillentkil

Ok i think i got it working, i used composer create-project --prefer-dist cakephp/app bookmarker and that is working.

when i use it without bookmarker it is not working. and i get the errors

sillentkil avatar Jul 21 '15 15:07 sillentkil

Ok just to confirm when i do the following: composer create-project --prefer-dist cakephp/app {project name} It is working when i do composer create-project --prefer-dist cakephp/app it is not, maby its a bug in cake but thanks helping me out.

sillentkil avatar Jul 22 '15 06:07 sillentkil

I'm facing the same issue in recent Cakephp & this library version.

YuvPrime avatar Feb 03 '16 11:02 YuvPrime

@YuvPrime how did you install? Using composer or download? Did you load the plugin in config/bootstrap.php? Have you followed the instructions in README?

jadb avatar Feb 03 '16 16:02 jadb

Eu estava com mesmo o problema e era porque no windows funcionava com $this->html->script mas como o linux é casesensitive não funcionava.

tive que alterar na view de $this->html->script para $this->Html->script

martinslae avatar Oct 24 '16 18:10 martinslae

Sorry, english please.

jadb avatar Oct 25 '16 13:10 jadb

Thank you @martinslae. I don't understand his language, but as he says, I changed all "$this->html->script" to "$this->Html->script" in all .ctp files and the error disappeared.

shu845 avatar Sep 21 '17 00:09 shu845