Re: Missing View Error: The view for UsersControllerController::login() was not found.

2011-12-15 Thread AD7six


On Dec 14, 8:07 pm, Parthasarathy Ramanujam psrama...@gmail.com
wrote:
 Isn't the default routing mapping forRL say /users/login =
 UsersController-login(); Why then does my app get an additional Controller
 suffix appended?

Look at the error message - it's saying it can't find a view file, it
found your controller.

That's probably because you've set $name in your controller to
UsersController - show some code if that's not it.

AD

-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Missing View Error: The view for UsersControllerController::login() was not found.

2011-12-14 Thread Parthasarathy Ramanujam
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Missing View Error: The view for UsersControllerController::login() was not found.

2011-12-14 Thread Parthasarathy Ramanujam
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 
psrama...@gmail.com 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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Missing View Error: The view for UsersControllerController::login() was not found.

2011-12-14 Thread Miloš Vučinić
It might be due to your database name. What is the actual controller
name for your app, the model name and the table name. Also , did you
use cake bake all to auto generate your source or did you write it
yourself.. ?

On Dec 14, 2:07 pm, Parthasarathy Ramanujam psrama...@gmail.com
wrote:
 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 







 psrama...@gmail.com 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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php