When I put this addres example.com/js/config I need to load a config file for JS but router loading a controller and displays error beacouse the controller dosn't exists. In bootstrap file I put a _init method:
protected function _initJsConfig(){
$this->bootstrap('frontController');
$oFront = $this->getResource('frontController');
$oFront->setRequest(new Zend_Controller_Request_Http());
$oRequest = $oFront->getRequest();
$oRequest->setDispatched(false);
//$oFront = Zend_Controller_Front::getInstance()->getRequest();
if($oRequest->getControllerName() == 'js' && $oRequest->getActionName() == 'config'){
include('/config/config.js.php');
return;
}
}
But this doesn't work. Any ideas? Best regards.