Hi Tim,

thanks for your answer, that's what I was looking for :). Wanted to
specify, in case someone else is interested, that you need to include
the line

App::import('Core','Acl');

in my_db_acl.php.

Cheers,
ojonam

On Apr 8, 5:00 pm, Tilen Majerle <[email protected]> wrote:
> 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 Majerlehttp://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 sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > [email protected] For more options, visit this group
> > athttp://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

Reply via email to