Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

url case matter

I name a controller as "SelectRoomController", url can not find

my url: /admin/selectroom/index

Phalcon\Mvc\Dispatcher\Exception: MyApp\Controllers\Admin\SelectroomController handler class cannot be loaded
 File=/opt/nginx/html/ycf_direct_selling/public/index.php
 Line=39
 Trace=#0 [internal function]: Phalcon\Mvc\Dispatcher->_throwDispatchException('MyApp\\Controlle...', 2)
1 [internal function]: Phalcon\Dispatcher->dispatch()
2 /opt/nginx/html/ycf_direct_selling/public/index.php(39): Phalcon\Mvc\Application->handle()
3 {main}


35.5k
Accepted
answer
edited Jul '16

Take a look at the Text::camelize() method: https://docs.phalconphp.com/en/latest/api/Phalcon_Text.html

If you have a SelectRoomController, the corresponding url would be /admin/select_room/index

Phalcon for some reason(windows ?) just expect controllers with lowercased prefix and only first letter uppercase.



608

we tested it with same nginx config, result show centos 7 is ok, but centos 6.5 fail.



608

thanks, it's ok.

Take a look at the Text::camelize() method: https://docs.phalconphp.com/en/latest/api/Phalcon_Text.html

If you have a SelectRoomController, the corresponding url would be /admin/select_room/index