Zend_View を Zend_Registry に入れたいのですが、その簡単な作業に問題があります。Zend_View は、application.ini でリソースとして初期化されます。
resources.view.encoding = "UTF-8"
resources.view.contentType = "text/html; charset=UTF-8"
resources.view.doctype = "HTML4_STRICT"
resources.view.helperPath.ZendX_JQuery_View_Helper = "ZendX/JQuery/View/Helper"
Bootstrap.php にメソッドを追加して、これをレジストリに入れたかったのです。
protected function _initView()
{
$view = $this->getResource('view');
Zend_Registry::set('view', $view);
return $view;
}
更新後、ビューの初期化でエラーが発生します。
Catchable fatal error: Argument 1 passed to ZendX_JQuery::enableView() must be an instance of Zend_View_Interface, null given, called in D:\projekty\xxx\library\ZendX\Application\Resource\Jquery.php on line 91 and defined in D:\projekty\xxx\library\ZendX\JQuery.php on line 104
私は何を間違っていますか?前にそのjQueryエラーが発生しません