Sometimes you just have to do it. I am using it and don't see any problem. Of course, be aware you put there really necessary stuff, something that is necessary to be executed by all Controllers. Alternative way is to put custom functions into bootstrap.php, it is later being included with every class.. but these are two different things. Inside AppController you can have code (load components, unload, etc..) that is to going to be executed prior to Controller's initialization methods. It is very handy, especially if you don't want to make endless copy-pastes in your controllers.
On Apr 23, 3:56 am, shardul <[email protected]> wrote: > Hi all, > > Want to chack weather is it ok to make the changes to > app_controller in cake folder. Does it affect in case of upgrade , is > it consider as a good practice or bad? Is there any other alternative > to this? > > shardul > > 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] 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 [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
