app_controller.php should go in /app ... not in /app/controllers

On Jan 4, 11:00 pm, Joshua Muheim <psybea...@gmail.com> wrote:
> I don't know if that's your question, but yes you need to create a
> files app/controllers/app_controller.php; you should NEVER change
> anything in the cake directory, so leave the
> cake/libs/controller/app_controller.php file alone.
>
> CakePHP will find your own app_controller.php file and load it instead
> of the one in the cake/libs/controller folder.
>
> On Fri, Dec 24, 2010 at 4:51 PM, John Maxim <goog...@gmail.com> wrote:
> > Thanks Stephen, I may get to test that later in my App.
>
> > On Dec 24, 7:01 pm, Stephen <step...@ninjacodermonkey.co.uk> wrote:
> >> 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 <goog...@gmail.com> wrote:
>
> >> > I found the file it's in *\cake\libs\controller
>
> >> > On Dec 24, 3:04 pm, John Maxim <goog...@gmail.com> 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 sitehttp://cakeqs.organdhelp 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 cake-php@googlegroups.com
> >> > To unsubscribe from this group, send email to
> >> > cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>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 sitehttp://cakeqs.organd 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 cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php?hl=en

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to