Zend: Cannot get router working from Bootstrap.php?

Seems like you're hitting a default route, so my best guess is your route is not registering properly I haven't ever used bootstrapping, so maybe there's your problem. Try to follow the execution path and see if the whole router is not created from scratch down the path again (i.e. Overriding yours) If that's not it, check what your request_uri is.

Router is matching your route to $request->getPathInfo(). So see what that returns as well Don't be afraid to browse through the source. I have tried to make it as readable as possible: framework.zend.com/svn/framework/standar....

Seems like you're hitting a default route, so my best guess is your route is not registering properly. I haven't ever used bootstrapping, so maybe there's your problem. Try to follow the execution path and see if the whole router is not created from scratch down the path again (i.e.

Overriding yours). \ If that's not it, check what your request_uri is. Router is matching your route to $request->getPathInfo().

So see what that returns as well. Don't be afraid to browse through the source. I have tried to make it as readable as possible: framework.zend.com/svn/framework/standar....

Hmmm - Thanks for the ideas however I have reverted to the application. Ini method of routing. The only reason I was trying to do routing from Bootstrap was because I thought it had to be done like that to use the url helper.

I can now see how to use the url helper with routes set in application.ini. – user568829 Jan 14 at 19:17.

Your code looks correct to me, in my bootsrap I have the following: $router = Zend_Controller_Front::getInstance()->getRouter(); $router->addRoute('sitemap', new Zend_Controller_Router_Route('sitemap. Xml', array('controller'=>'index','action'=>'sitemap'))); Changed to: $router = Zend_Controller_Front::getInstance()->getRouter(); $router->addRoute('sitemap', new Zend_Controller_Router_Route('si', array('controller'=>'index','action'=>'sitemap'))); Both still work, either hitting sitemap. Xml to si..... What is in your application.

Ini file? Instead of running in your index. Php: $application->bootstrap()->run(); In my application.

Ini I have, this starts the application including the bootstrap - not sure if it would make any difference, I haven't really looked into the bootstrap once I got it working: bootstrap. Path = APPLICATION_PATH "/Bootstrap. Php" bootstrap.

Class = "Bootstrap.

I haven't ever used bootstrapping, so maybe there's your problem. Try to follow the execution path and see if the whole router is not created from scratch down the path again (i.e. If that's not it, check what your request_uri is.

Router is matching your route to $request->getPathInfo(). So see what that returns as well. Don't be afraid to browse through the source.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions