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 233087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:04:17+00:00 2026-05-11T20:04:17+00:00

I have in my bootstrap public function initRoutes() { $router = new Zend_Controller_Router_Rewrite(); $route

  • 0

I have in my bootstrap

public function initRoutes()
{
    $router = new Zend_Controller_Router_Rewrite();
    $route = new Zend_Controller_Router_Route_Static('register', array('module'=>'members','controller'=>'register','action'=>'index'));
    $router->addRoute('register',$route);
}

and when I go to http://domain.com/register

I get this error:

The following error occurred:

exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (register)' in /var/www/html/beta/library/Zend/Controller/Dispatcher/Standard.php:241 Stack trace: #0 /var/www/html/beta/library/Zend/Controller/Front.php(936): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 /var/www/html/beta/application/bootstrap.php(24): Zend_Controller_Front->dispatch() #2 /var/www/html/beta/public/index.php(8): require_once('/var/www/html/b...') #3 {main}

in the modules/members/controllers directory there is a RegisterController.php with the class Members_RegisterController

I am not sure what I am doing wrong, I have referred to the manual on static routes and it seems that this should work

  • 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. Editorial Team
    Editorial Team
    2026-05-11T20:04:18+00:00Added an answer on May 11, 2026 at 8:04 pm

    Looks like you are adding a route to a router, but the router is not the one that belongs to your front controller. The router you created evaporates as soon as your initRoutes() function terminates.

    You must either use the default router of your front controller:

    $router = $frontCtrl->getRouter();
    $router->addRoute( ... );
    

    Or else if you create a new router, set that router to be the router for the front controller:

    $router = new Zend_Controller_Router_Rewrite();
    // ...add routes...
    $frontCtrl->setRouter($router);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this plugin in the plugins directory within the admin module directory. So,
I have these namespaces defined in my bootstrap file: use Doctrine\Common\ClassLoader, Doctrine\Common\Annotations\AnnotationReader, Doctrine\ODM\MongoDB\DocumentManager, Doctrine\ODM\MongoDB\Mongo,
Zend Gurus: I have a problem that my session expires if I refresh a
I'm trying to use CDI for my JSF/Java EE application. I have the following
I'm trying to create a sandboxed AppDomain for loading extensions/plugins. I have a MarshalByRefObject
Very likely I'm going about this in the wrong way entirely. I'm completely new
When using the normal architecture (I guess it's called controller-based architecture), zend recommends the
I have a application.ini like this [production] phpSettings.display_startup_errors = 1 phpSettings.display_errors = 1 includePaths.library
I'm trying to write a unit test with phpunit for a model that uses
I'm having a bit of trouble on some of my controllers. Some of them

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.