I have this in my application.ini

resources.frontController.plugins.CheckHasAcess =
"Wenbert_Controller_Plugin_CheckHasAccess"

But when I do that, I get this error:

Fatal error: Class 'Wenbert_Controller_Plugin_CheckHasAccess' not found in
/opt/apache2/htdocs/apps/ZendFramework/library/Zend/Application/Resource/Frontcontroller.php
on line 90

How do I specify a directory for plugins in application.ini?


My work-around for the moment is to add this in my Bootstrap.php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
    protected function _initAutoload()
    {
        $autoloader = new Zend_Application_Module_Autoloader(array(
            'namespace' => 'Default',
            'basePath'  => dirname(__FILE__),
        ));

        //Added this as a work-around.
        require_once 'Wenbert/Controller/Plugin/CheckHasAccess.php';

        return $autoloader;
    }

    protected function _initDoctype()
    {
        $this->bootstrap('view');
        $view = $this->getResource('view');
        $view->doctype('XHTML1_STRICT');
    }

    protected function _initView()
    {
        $view = new Zend_View();
        // more initialization...
        return $view;
    }
}


I am stuck at the moment. Any reply would be great. Thanks!

-----
http://blog.ekini.net
-- 
View this message in context: 
http://www.nabble.com/set-plugin-directory-in-application.ini-tp23848667p23848667.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to