In your application.ini are there any lines like:

resources.log.whatever ?

If not, you have to set this first.

See here for documentation: 
http://framework.zend.com/manual/en/zend.application.available-resources.html#zend.application.available-resources.log

Am 01.06.2010 um 09:03 schrieb shahrzad khorrami:

> hi all,
> 
> I'm exactly following 'zend framework in action' ebook to add a module...
> 
> why this error occurs:
> 
>                   Call to a member function hasPluginResource() on a 
> non-object 
> 
> -----------------------
>     public function getLog()
>     {
>           $bootstrap = $this->getInvokeArg('bootstrap');
> 
> //        if (!$bootstrap->hasPluginResource('Log')) {
> //            return false;
> //        }
> //        $log = $bootstrap->getResource('Log');
> //        return $log;
>     }
> 
> the problem is in ErrorController.php , when I comment these lines, it works 
> well but how to fix it? 
> 
> Thanks in advance,
> Shahrzad Khorrami

Reply via email to