in app/app_controller.php do this before class AppController starts...
<?php
App::import('Lib', 'MyDbAcl');
class AppController extends Controller //this you should already have
...
...
...
?>
place your my_db_acl.php file inside app/libs folder...:)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/4/8 ojonam <[email protected]>
> Hello all,
>
> due to some specific needs for my app with respect to Acl, I have
> extended the DbAcl class which resides in cake/libs/controllers/
> components/acl.php :
>
> MyDbAcl extends DbAcl { //lots of code }
>
> I do not want this code to reside in the above file, because it is
> application specific, and therefore has no place in the cake
> libraries. The problem is, however, in core.php, I have to specify
> which class to use in the following manner:
>
> Configure::write('Acl.classname', 'MyDbAcl');
>
> When I do this, I get an error message on the browser, telling me that
> MyDbAcl has not been defined in the acl.php file.
>
> What are my options here? The worst case is obviously to include the
> MyDbAcl code in the libs, but it isn't really very neat.
>
> Cheers,
> ojonam
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php