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

View folders

For example: I have AdminIndexController with indexAction() and it's view located in /views/adminindex/index.volt

Can I provide some information to ViewEngine to force it look at /views/AdminIndex/index.volt (camelcase) directory?

Thanks!



368

you can pick view

$this->view->pick("AdminIndex/index");

Yes, i know, but i don't want use it in each controller manually...

Unfortunately, Annotations router always lowercase controller name =((