The code I have is exactly like this:
application.ini
resources.router.routes.rent.type = "Zend_Controller_Router_Route_Hostname"
resources.router.routes.rent.route = "rent.example.com"
resources.router.routes.rent.defaults.module = "rent"
resources.router.routes.rent.chains.default.route = ":controller/:action/*"
resources.router.routes.rent.chains.default.defaults.controller = "index"
resources.router.routes.rent.chains.default.defaults.action = "index"
And in a controller to test
echo $this->view->url(array(
'controller' => 'user',
'action' => 'activate',
'email' => 'email@example.com',
'key' => 'somekey'
), 'rent');
exit;
But it raises an exception with message 'Route rent is not defined'
All other routes in my application.ini are working fine.
What could be the problem?
Regards,
Derk
没有评论:
发表评论