I'm looking for a solution to the problem I mentioned in the title.
I have ROUTER and I have an order I check whether the controller exists or not and I can not find a solution.
I did something like this
class Plugin_Router extends Zend_Controller_Plugin_Abstract {
public function routeStartup (Zend_Controller_Request_Abstract $request)
{
$dispatcher = Zend_Controller_Front::getInstance()->getDispatcher();
if (!$dispatcher->isDispatchable($request)) {
// Controller exists
// Exit ();
$router = Zend_Controller_Front::getInstance()->getRouter();
$router->addRoute('/:catid', new Zend_Controller_Router_Route('/:catid', array(
'module' => 'default' ,
'controller' => 'profile' ,
'action' => '' // Check your action and controller
)));
}
}
}
And it does not work there is another solution ?