Hello everybody. I'm struggling with the Zend-Router. I want to chain language in my url. Everything works fine but my modular routing.
If i call: http://domain.de/en/index - the indexAction of my IndexController of the default module is executed and translated.
Same goes for:
http://domain.de/en/about So the aboutAction of the IndexCo...
I haven't used the Zend Router much yet so not sure how difficult or easy this is, but I think Zend is flexible so it's got to have a way to do this easily.
So I create a controller Cont with 2 actions actone and acttwo. This naturally gives me
//the default index controller
site.com/
site.com/index/index
//and m...
I have a controller and action which I'm accessing through a custom URL. The original route is still accessible though at the default location
zend.com/controller/action
How can I change this to simulate a "Page not found" when the user tries to access this URL? Is it possible?
...
Hello gurus!
i've picked up zend framework and being playing with it, and here is a situation i'll like to
achieve.
i have default and user modules, user has a different layout user_layout that i load in predispatch of NovelsController of user modules.i have a small form in the user_layout that post dates (from and to ) to showAction...
Hi,
In my zend framework application, I have routes and defaults like:
resources.router.routes.plain.defaults.module = "index"
resources.router.routes.plain.defaults.controller = "index"
resources.router.routes.plain.defaults.action = "index"
I want to be able to change default routes for any module or controller or action
e.g.
Let'...
I am setting language depending on the domain name (en for en.example.com, tr for tr.example.com):
resources.router.routes.plain.type = "Zend_Controller_Router_Route"
resources.router.routes.plain.route = "/:module/:controller/:action"
resources.router.routes.plain.defaults.language= "en"
resources.router.routes.plain.defaults.module = ...
Hello. My problem is I want some parameter values, passed through URL, don't trigger the Zend routing but lead to defaul controller/action pair.
Right now I have following in my index.php:
// *** routing info ***
$router = Zend_Controller_Front::getInstance()->getRouter();
$router->addRoute('showpage', new Zend_Controller_Router_R...
I am using a custom Router to enable pages like:
mytutorialsite.com/category/:categoryname
# added to application.ini
resources.router.routes.categorynameOnCategory.route = /category/:categoryname
resources.router.routes.categorynameOnCategory.defaults.module = default
resources.router.routes.categorynameOnCategory.defaults.controller ...
This is possible in Symfony with some routing magic but in Zend I'm not sure how to do this.
I want to make this url
http://example.com/unit/view/id/[15]
look like this instead
http://example.com/unit/[15]/view/[name]
where unit/view is the controller/action and id/15 is parameter key=>value, and [name] is the name of the unit be...