I am trying to make a route for this URL:
http://192.168.2.100/zf/rbadmin/room-signups/update/1/
so I do this:
Code: Select all
$route11 = new Zend_Controller_Router_Route(
'room-signups/update/:id',
array(
'controller' => 'roomsignups',
'action' => 'update'
)
);Now I understand this is because if I let it do the route by default then it is looking for the controller file: RoomSignupsController.php which is what I want. But if I use the custom route that I want, it starts looking for the controller file RoomsignupsController.php (notice the lowercase "s"). So then it can't find the file and craps out on me.Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (RoomSignups)' in /var/www/lib/library/Zend/Controller/Dispatcher/Standard.php:198 Stack trace: #0 /var/www/lib/library/Zend/Controller/Front.php(929): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 /var/www/zf/rbadmin/index.php(158): Zend_Controller_Front->dispatch() #2 /var/www/zf/rbadmin/room-signups.php(1): require_once('/var/www/zf/rba...') #3 {main} thrown in /var/www/lib/library/Zend/Controller/Dispatcher/Standard.php on line 198
So, how can I make it so I specify the controller file or just make it so that when it takes out the '-' it does a ucfirst() or something on it so everything is good? I would rather have it so that it turns to RoomSignupsController even when using the custom route.