Isn't the default routing mapping forRL say /users/login = UsersController->login(); Why then does my app get an additional Controller suffix appended?
On Thu, Dec 15, 2011 at 12:27 AM, Parthasarathy Ramanujam < [email protected]> wrote: > Hi, > > I am a newbie to CakePHP and just got CakePHP 1.3 installed and I am > trying to build a new website. I have tried to redirect the user first to > the login page instead of the standard home/welcome page by editing > app/config/routes.php and changing this line: > > Router::connect('/', array('controller' => 'pages', 'action' => > 'display', 'home')); > > to > > Router::connect('/', array('controller' => 'users', 'action' => 'login')); > > However I now get the error > > *Missing View > > Error: The view for UsersControllerController::login() was not found. > > Error: Confirm you have created the file: > /home/thambu/workspace/<project>/app/views/users_controller/login.ctp > > Notice: If you want to customize this error message, create > app/views/errors/missing_view.ctp* > > I have created users_controller.php file that contains the code for > UsersController. I do not understand why is the server trying to route my > page to */views/users_controller/login.ctp *and why is CakePhp assuming > my Controller should be named UsersControllerController? > > Please can anyone help me in this regard? > > Regards > > Partha > > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
