The AppController is related to every controller you create, this means
every controller will inherit the functions and settings from the
AppController.

Anything you do in the app_controller or the app_model will be executed in
the controllers and models which extend it, unless you override a function,
in which you will need to use parent::functionName(); to include the
app_controller's


On 24 December 2010 07:37, John Maxim <[email protected]> wrote:

> I found the file it's in *\cake\libs\controller
>
> On Dec 24, 3:04 pm, John Maxim <[email protected]> wrote:
> > I'm reading this section now:
> >
> > http://book.cakephp.org/view/957/The-App-Controller
> >
> > I find that the usefulness of AppController is by creating the
> > components, uses, and helpers in a new folder different path other
> > than in the controller file. But that page says creating the
> > AppController: is defined in /app/app_controller.php
> >
> > Is it a new file I need to create?
> >
> > Or is it something else because a comment from that page says the file
> > (app_controller.php) is here:
> >
> > app\cake\libs\controller
> >
> > The path above doesn't even exist.
> >
> > The only eg. is:
> >
> >     <?php
> >     class AppController extends Controller {
> >     }
> >     ?>
> >
> > So do I include the Auth component in there (AppController) rather
> > than in the controller file ?
> >
> > Now even the beforefilter function is entered in AppController which
> > both I haven't seen in any examples.
> >
> > Are there more examples to this ? Is this normally useful ?
> >
> > Thanks.
> >
> > John M.
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>



-- 
Kind Regards
 Stephen @ NinjaCoderMonkey

 www.ninjacodermonkey.co.uk

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to