We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

JsController handler class cannot be loaded

I got this error

JsController handler class cannot be loaded how to solve it???



43.9k

by giving us more informations ;-)

I want to use jquery.form.js so I have added it to views/index.phtml echo Tag::javascriptInclude('js/jquery.min.js') but I am getting error JsController handler class cannot be loaded in my console



43.9k

you should better use phalcon assets collection management: https://docs.phalcon.io/en/latest/reference/assets.html#collections It is much more convenient (you can define assets, saying "jquery.min.js" in your ControllerBase, and define a per action js addition to the collection, saying "jquery.form.js" or "jquery.dataTables.min.js") for calling your js and you will get rid of your error messages