Tell me the "Invalid controller specified"problem...

For programming and general questions on Zend Framework

Tell me the "Invalid controller specified"problem...

Postby h5b--e1z9uqnx4t0td2 on Mon Jan 28, 2013 8:03 am

I installed Zend Framework(version 1.12.1) on my Linux(CentOS),but it occured a problem.See as below:

When I use "newriver.local/","newriver.local/Index" and "newriver.local/Index/index",it seems that the site is running perfectly...

20130128_142022.jpg
Only Index page of my ZF is ok on CentOS :-(
20130128_142022.jpg (97.98 KiB) Viewed 641 times


Nevertheless,after creating a new Controller "login",I use "newriver.local/login",Enter. ...It shows the error message like this:

An error occurred
Page not found
Exception information:

Message: Invalid controller specified (login)
Stack trace:

#0 /var/www/html/newriver/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#1 /var/www/html/newriver/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#2 /var/www/html/newriver/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#3 /var/www/html/newriver/public/index.php(26): Zend_Application->run()
#4 {main}

Request Parameters:

array (
'controller' => 'login',
'action' => 'index',
'module' => 'default',
)


Could someone tell me how to solve this problem,please?
PS:The site("newriver.local/login") is running correctly on Windows.
h5b--e1z9uqnx4t0td2
 
Posts: 2
Joined: Mon Jan 28, 2013 7:15 am

Re: Tell me the "Invalid controller specified"problem...

Postby h5b--e1z9uqnx4t0td2 on Mon Jan 28, 2013 10:57 am

Heh,problem sovled.The first letter of the controller name "loginController" must be capitalized.
loginController.php=>LoginController.php
:)
h5b--e1z9uqnx4t0td2
 
Posts: 2
Joined: Mon Jan 28, 2013 7:15 am


Return to Zend Framework

Who is online

Users browsing this forum: No registered users and 11 guests