title: Zend frame work Custom view helper error
body: <p>Hi am trying to add custom helper throughout my application</p>
  
  <p>Have done following steps</p>
  
  <ol>
  <li><p>index.php </p>
  
  <pre><code>$view = new Zend_View();
  $view-&gt;addHelperPath('My/View/Helper', 'My_View_Helper');
  Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
  </code></pre></li>
  <li><p>Helper class in My/View/Helper</p>
  
  <pre><code>class My_View_Helper_Common extends Zend_View_Helper_Abstract
  {
  
      public function example()
      {
        return "ok"; 
      }
  }
  </code></pre></li>
  <li><p>now calling in view index.phtml</p>
  
  <pre><code>$this-&gt;example()
  </code></pre></li>
  </ol>
  
  <p>am getting this error</p>
  
  <pre>
  Uncaught exception 'Zend_View_Exception' with message 'script 'error/error.phtml' not found in path (.\application\views\scripts\)' in C:\xampp\htdocs\wyfixture\library\Zend\View\Abstract.php:924 
  Stack trace: 
  #0 C:\xampp\htdocs\wyfixture\library\Zend\View\Abstract.php(827): Zend_View_Abstract->_script('error/error.pht...') 
  #1 C:\xampp\htdocs\wyfixture\library\Zend\Controller\Action\Helper\ViewRenderer.php(903): Zend_View_Abstract->render('error/error.pht...') 
  #2 C:\xampp\htdocs\wyfixture\library\Zend\Controller\Action\Helper\ViewRenderer.php(924): Zend_Controller_Action_Helper_ViewRenderer->renderScript('error/error.pht...', NULL) 
  #3 C:\xampp\htdocs\wyfixture\library\Zend\Controller\Action\Helper\ViewRenderer.php(963): Zend_Controller_Action_Helper_ViewRenderer->render() 
  #4 C:\xampp\htdocs\wyfixture\library\Zend\Controller\Action\HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch() 
  #5 C:\xampp\htdocs\wyfixture\library\Zend\Controller\Action.php(523):
  </pre>
  
  <p>please help me</p>