Forgot to mention, that I'm using this initView method:
protected function _initViewHelpers()
{
$view = new Zend_View();
$view->setEncoding('UTF-8');
$view->doctype('XHTML1_STRICT');
$view->headScript()->appendFile('/tabmenu/js/jquery-1.3.1.min.js');
$view->addHelperPath("Ig/View/Helper","Ig_View_Helper_")
->addHelperPath("Tinymce/View/Helper","Tinymce_View_Helper_")
->addHelperPath("ZendX/JQuery/View/Helper",
"ZendX_JQuery_View_Helper");
$viewRenderer = new
Zend_Controller_Action_Helper_ViewRenderer($view);
$viewRenderer->setView($view);
Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
Zend_Layout::startMvc(
array(
'layout' => 'layout',
'layoutPath' => '/application/views/layouts',
'pluginClass' => 'ZFBlog_Layout_Controller_Plugin_Layout'
)
);
$view = Zend_Layout::getMvcInstance()->getView();//?
$this->bootstrap('layout');
$layout=$this->getResource('layout');
$config=new Zend_Config_Xml(APPLICATION_PATH .
'/configs/navigation.xml',
'nav');
$navigation=new Zend_Navigation($config);
$view->navigation($navigation)->setAcl($this->_acl)->setRole(Zend_Registry::get('role'));
}
And in initAutoload:
protected function _initAutoLoad()
{
$autoloader = Zend_Loader_Autoloader::getIn
$autoloader->setFallbackAutoloader(true);
...
}
--
View this message in context:
http://old.nabble.com/Troubles-with-Custom-Validation-plugin-tp26160618p26197683.html
Sent from the Zend Framework mailing list archive at Nabble.com.