Im trying to use the Zend Frameworks ACL library in my code (in codeigniter) and after including the library in my controller I get this error:
Fatal error: Cannot redeclare class Zend_Acl in C:\xampp\php\PEAR\Zend\Acl.php on line 48
If I remove the include to the Zend library I get this error instead
Fatal error: Class ‘Zend_Acl’ not found in C:\xampp\htdocs\ISU-Cart\system\application\libraries\acl.php on line 3
Any help on this?
I fixed this by going into all of the files I had and changing the
require_once ‘Zend/Acl/Resource/Interface.php’;
to
require_once BASEPATH .’libraries/Zend/Acl/Resource/Interface.php’;