Hi everyone
when i upload my project and run it’s give me error calling
Error: htmlHelper could not be found.
Error: Create the class htmlHelper below in file: src/View/Helper/htmlHelper.php
so how can fix it ?
Hi everyone
when i upload my project and run it’s give me error calling
Error: htmlHelper could not be found.
Error: Create the class htmlHelper below in file: src/View/Helper/htmlHelper.php
so how can fix it ?
Make sure you run “composer install” on your web server after uploading the project.
Let me know if it helps or not.
If not, it would be helpful if you could also provide the line of code that’s causing this error, surely mentioned in the error message or stack trace.
if you are developing under windows you should know that windows make file name case INSENSITIVE while linux is case SENSITIVE so the helper you include should be ‘Html’ not ‘html’
in where ???
in the controller you are getting the error from or AppController you should have somewhere something like
public $helpers = [ 'html' ]