ahora muestro todo.
application.ini
Código PHP:
pluginPaths.plugin = APPLICATION_PATH "/Plugins"
resources.frontController.plugin.AccessCheck = "Qclienets_Plugins_AccessCheck"
bootstrap module Qclientes:
Código PHP:
<?php
class Qclientes_Bootstrap extends Zend_Application_Module_Bootstrap
{
protected function _initAutoload()
{
$modelLoader = new Zend_Application_Module_Autoloader(array(
'namespace' => '',
'basePath' => APPLICATION_PATH ));
$this->_acl = new Qclientes_Model_LibraryAcl();
$this->_auth = Zend_Auth::getInstance();
$fc = Zend_Controller_Front::getInstance();
$fc ->registerPlugin(new Qclientes_Plugin_AccessCheck());
return $modelLoader;
}
}
clases AccessCkeck.php en Qclientes / plugins
Código PHP:
<?php
class Qclientes_Plugin_AccessCheck extends Zend_Controller_Plugin_Abstract
{
public function preDispatch()
{
echo "Predispacthed action";
}
}
Models : LibraryAcl en Qclientes/models
Código PHP:
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
class Qclientes_Model_LibraryAcl extends Zend_Acl{
public function __construct() {
$this->add(new Zend_Acl_Resource('index'));
}
}
?>
eso es todo lo que tengo y no funciona, muchas gracias por la ayuda