Resources: resources.router.routes.StandardSystems. Route = "/StandardSystems/:make/:model" resources.router.routes.StandardSystems..... Controller = "standardsystems" resources.router.routes.StandardSystems.....
Action = "index.
Nice! Is there a way to make it work if the index controller is sort of an "unknown computer" page, and it goes only to a "computer" action if make and model aren't specified? Currently it throws massive exceptions if make and model aren't specified.... – Billy ONeal Apr 13 '10 at 1:18 Nevermind -- was able to figure it out.
Posted that as an edit to my question. Thank you very much :) – Billy ONeal Apr 13 '10 at 1:28 Superb. Wish this sort of thing was documented a bit better – jakenoble Sep 22 at 7:24.
You would first instantiate a new Zend_Controller_Router_Route to create your route. $stdsys_route = new Zend_Controller_Router_Route( '/StandardSystems/:make/:model', array( 'controller' => 'StandardsystemsController', 'action' => 'myaction' ); ); This route then needs to be added to your router. $front_controller = Zend_Controller_Front::getInstance(); $front_controller->getRouter()->addRoute('stdsys', $stdsys_route); Now when you dispatch, the route should take effect.
References: http://framework.zend.com/manual/en/zend.controller.router.html.
Index. Php? Somewhere in Bootstrap.
Php? – Billy ONeal Apr 13 '10 at 1:16.
I'm looking to setup a custom route which supplies implicit parameter names to a Zend_Application. I'd like that to be mapped to the StandardsystemsController, and I'd like that controller to be passed parameters "make" => "Dell" and "model" => "LatitudeE6500". How can I setup such a system using Zend_Application and Zend_Controller_Router?
EDIT: I didn't explain myself all that clearly I guess -- if make and model aren't present I'd like to redirect the user to another action on the StandardsystemsController. Currently, using Ballsacian1's answer with this in application.
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.