help with Zend dispatcher
Posted
by simple
on Stack Overflow
See other posts from Stack Overflow
or by simple
Published on 2010-03-12T06:59:47Z
Indexed on
2010/03/12
7:07 UTC
Read the original article
Hit count: 192
php
|zend-framework
this is the Zend Controller Dispatcher Standart
public function isDispatchable(Zend_Controller_Request_Abstract $request)
{
$className = $this->getControllerClass($request);
echo 'is dispatchanble started';
var_dump($className);
if (!$className) {
return false;
}
var_dump(class_exists($className, false));
if (class_exists($className, false)) {
return true;
}
$fileSpec = $this->classToFilename($className);
$dispatchDir = $this->getDispatchDirectory();
$test = $dispatchDir . DIRECTORY_SEPARATOR . $fileSpec;
return Zend_Loader::isReadable($test);
}
I need to set up custom modular structure and loading just using plugins (I need to setup the path where zend looks for controller), so I am stuck
tracing down I came to the isDispatchable method that returns false and consequently the dispatching returns error . This method returns false because class_exists return false , it is surely has to do with auto loading ,but confused. help will be appreciated,though I got the feeling that I am looking at wrong place.
© Stack Overflow or respective owner