Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 174193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:28:41+00:00 2026-05-11T13:28:41+00:00

I am in process of making my bootstrap.php file more organized, but after I

  • 0

I am in process of making my bootstrap.php file more organized, but after I put everything into separate static methods, I cannot load any page beyond index controller. E.g. if I try to open

http://localhost/zftutorial/login/index

I get

    Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message  'Invalid controller class ('Login_IndexController')' in C:\Program  Files\VertrigoServ\www\library\Zend\library\Zend\Controller\Dispatcher\Standard.php:341  Stack trace: #0 C:\Program  Files\VertrigoServ\www\library\Zend\library\Zend\Controller\Dispatcher\Standard.php(255):  Zend_Controller_Dispatcher_Standard->loadClass('IndexController') #1 C:\Program  Files\VertrigoServ\www\library\Zend\library\Zend\Controller\Front.php(934):  Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),  Object(Zend_Controller_Response_Http)) #2 C:\Program  Files\VertrigoServ\www\zftutorial\public\index.php(18): Zend_Controller_Front->dispatch()  #3 C:\Program Files\VertrigoServ\www\zftutorial\public\index.php(138): Bootstrap::run() #4  {main} thrown in C:\Program  Files\VertrigoServ\www\library\Zend\library\Zend\Controller\Dispatcher\Standard.php on  line 341 

and in my bootstrap file I seem to have defined where controllers chould be found:

public static function setupFrontController() {     self::$frontController = Zend_Controller_Front::getInstance();     self::$frontController->throwExceptions(true);     self::$frontController->returnResponse(true);     self::$frontController->setBaseUrl('/zftutorial');      self::$frontController->setControllerDirectory(         array(             'default' => self::$root . '../application/controllers',             'admin' => self::$root . '../application/controllers',             'index' => self::$root . '../application/controllers',             'login' => self::$root . '../application/controllers',             'user' => self::$root . '../application/controllers'         )     );      self::$frontController->setParam('registry', self::$registry);  } 

Perhaps it has to do something with routing, but my app worked fine with implicit routing before, e.g. other controllers worked well too. WHat is the source of above error? How can I test/find/fix it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:28:41+00:00Added an answer on May 11, 2026 at 1:28 pm

    Looking at your stack trace the error is Invalid controller class (‘Login_IndexController’)

    This suggests that the class Login_IndexController doesn’t exist.

    You should have a file called IndexController.php in the login module’s controller directory. The structure you have at the moment won’t work because two modules can’t have a controller with the same name. Change the structure to

    self::$frontController->setControllerDirectory(         array(             'default' => self::$root . '../application/modules/default/controllers',             'admin' => self::$root . '../application/modules/admin/controllers',             'index' => self::$root . '../application/modules/index/controllers',             'login' => self::$root . '../application/modules/login/controllers',             'user' => self::$root . '../application/modules/user/controllers'         )     ); 

    Create the IndexController.php in self::$root . ‘../application/modules/login/controllers and make sure the class is called Login_IndexController

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm in the process of making an application, but I've encountered an problem which
I am in the process of making a PHP web application. I have a
I'm in the process of making an Android application that creates a new file
I'm in the process of making a captcha in Java but I'm having trouble
I'm in the process of making my PHP site Unicode-aware. I'm wondering if anyone
I am in the process of making a Javascript(Front end, PHP back end) game.
I am in the process of making a quick PHP based forum, and each
I'm in the process of making my own Captcha check on my website. Everything's
In the process of making an old webpage standard compliant, the validator came across
I'm in the process of making a simple Todo List application based on Joosy

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.