title: Zend_View as resource, put into Zend_Registry
body: <p>I want to put Zend_View into Zend_Registry and I am having trouble with that simple task.
  Zend_View is initialized in application.ini as resource:</p>
  
  <pre><code>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"
  </code></pre>
  
  <p>It works fine, then I wanted to put this in registry by adding method in Bootstrap.php.</p>
  
  <pre><code>protected function _initView()
  {
      $view = $this-&gt;getResource('view');
      Zend_Registry::set('view', $view);
  
      return $view;
  }
  </code></pre>
  
  <p>And after refresh I get errors in View initialization:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>What am I doing wrong? I don't get that jQuery error before </p>