I'm having some difficulties while trying to understand the whole zend routing concept. My scenario is to have a fallback controller for my small cms app. I've already implemented my own route class for this. What it does is, similar to module route, to try to check if the module from the given path does exists, if not my cms controller will be called.
Here is the code example:
// ...
public function match($path, $partial = false)
{
if (false === $this->_doesModuleExists($path)) {
return parent::match($path, $partial);
}
return array(
'module' => 'static',
'controller' => 'serve',
'action' => 'view',
'static_path' => $path
);
}
// ...
Bunu yapmak için daha şık bir yolu varsa ne dolaşıp ediyorum olduğunu. Bence çünkü benim sınıf, bu görevi yapmak için gerçekten gerekli mi, bu da mümkün standart zend rota adlı ile bunu yapmak, ama sadece anlamaya olamaz. Takdir Herhangi bir yardım