1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| include "Zend/Loader.php";
Zend_Loader::loadClass('Zend_Auth');
Zend_Loader::registerAutoload();
// Création de l'objet Auth
$auth = Zend_Auth::getInstance();
// Création de l'objet Acl
$acl = new BtAcl($auth);
// Setup controller
$controller = Zend_Controller_Front::getInstance();
$controller->setControllerDirectory('../application/default/controllers');
$controller->throwExceptions(true); // should be turned on in development time
$controller->registerPlugin(new Bt_Plugin_Auth($auth, $acl));
$controller->registerPlugin(new Bt_Plugin_Agreement($auth)); |