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 <[email protected]> wrote: > Thanks Stephen, I may get to test that later in my App. > > On Dec 24, 7:01 pm, Stephen <[email protected]> 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 <[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 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 [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 > 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
