Re: AppController methods in CakePHP 1.2

2008-06-19 Thread dr. Hannibal Lecter
I think it's quite possible that these things happen because people forget to clear their app cache, not because cake has a bug. It seems highly unlikely that this sort of thing will happen only to the few and after update. On Jun 19, 12:33 pm, Aidan Lister <[EMAIL PROTECTED]> wrote: > So renamin

Re: AppController methods in CakePHP 1.2

2008-06-19 Thread AD7six
On Jun 19, 12:33 pm, Aidan Lister <[EMAIL PROTECTED]> wrote: > So renaming / deleting this file should be documented > athttp://book.cakephp.org/edit/18/application-extensions? don't touch the cake folder and no. > > I hope the cakephp developers understand the security implications of > this

Re: AppController methods in CakePHP 1.2

2008-06-19 Thread Aidan Lister
So renaming / deleting this file should be documented at http://book.cakephp.org/edit/18/application-extensions ? I hope the cakephp developers understand the security implications of this change ... The majority of authentication models used in CakePHP relied on AppController's beforeFilter ...

Re: AppController methods in CakePHP 1.2

2008-05-29 Thread kewlburn
I solved this one by renaming /cake/libs/controller/app_controller.php to /cake/libs/controller/app_controller.php1 :( On Apr 12, 2:51 pm, Bodog <[EMAIL PROTECTED]> wrote: > Install / Setup / Config were fine. I'm convinced there was a problem > with that build, since I had changed nothing when I

Re: AppController methods in CakePHP 1.2

2008-04-12 Thread Bodog
Install / Setup / Config were fine. I'm convinced there was a problem with that build, since I had changed nothing when I switched to the nightly. My config stayed the same and as soon as I switched to the nightly libs, everything worked again. > I've been using 1.2.0.6311 as well as another inst

Re: AppController methods in CakePHP 1.2

2008-03-30 Thread Sliv
well, nate is on the dev team, so it's possible he knows what he's talking about :P I've been using 1.2.0.6311 as well as another instance of the latest svn, both with no problems using app_controller in the app folder. If you're having problems, I'd look at your install/setup/config before anyt

Re: AppController methods in CakePHP 1.2

2008-03-30 Thread Bodog
Yep, it seems like the 1.2 build which is downloaded from cakephp.org has this problem. Getting the latest nightly seems to solve it when read from: app/app_controller.php --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: AppController methods in CakePHP 1.2

2008-03-30 Thread Bodog
A few mixed messages here. Some people say to put app_controller.php in: app/app_controller.php while others say: app/controllers/app_controller.php Neither work for me in 1.2.0.6311 beta. Just like Seb, I had to put it in: cake/libs/controllers/app_controller.php ... which isn't supposed to

Re: AppController methods in CakePHP 1.2

2008-03-25 Thread nate
Mike, that's because AppController is supposed to go in your app/ folder, not in controllers/, not in the root. On Feb 13, 4:43 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > can i jump in here? > i have app_controller.php in controllers/ and its first line is > die("woot") > > it does not

Re: AppController methods in CakePHP 1.2

2008-02-14 Thread majna
put die in __construct(){ die('wtf'); } On 13 velj, 21:43, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > can i jump in here? > i have app_controller.php in controllers/ and its first line is > die("woot") > > it does not die. i made a copy and put in the app root, and it did > not die either

Re: AppController methods in CakePHP 1.2

2008-02-13 Thread [EMAIL PROTECTED]
can i jump in here? i have app_controller.php in controllers/ and its first line is die("woot") it does not die. i made a copy and put in the app root, and it did not die either. 1.2.0.6311 beta On Jan 30, 4:39 am, Seb <[EMAIL PROTECTED]> wrote: > OK, now I'm confused. > > I've just got the l

Re: AppController methods in CakePHP 1.2

2008-01-30 Thread grigri
Since a certain revision of 1.2 (not sure which one), your app controller must be in /app/controllers/app_controller.php NOT /app/app_controller.php like before Also note that in a controller, any 'public' method is potentially an action, so you should really pseudo-protect `doSomething` : cl

Re: AppController methods in CakePHP 1.2

2008-01-30 Thread Seb
OK, now I'm confused. I've just got the latest nightly, put app_controller.php in /app/ app_controller.php and it seems to be working - looks like there's something broke in the new year's build?! Thanks for the help anyway - i'll "pseudo" protect my functions from now on :D Seb On Jan 30, 10:

AppController methods in CakePHP 1.2

2008-01-30 Thread Seb
Hi! I'm just thinking about moving an App i'm working on to CakePHP 1.2 so that I can enjoy some of the new features... I seem to have fallen at the first hurdle though! In my existing app (for 1.1) I define some functions in my /app/ app_controller.php for use elsewhere. E.g.: class AppControl

Re: AppController methods in CakePHP 1.2

2008-01-30 Thread Seb
I've looked into this a bit more and found that if i stick my custom functions for AppController in: /cake/libs/controller/app_controller.php Then the function is visible in the sub controllers - is Cake 1.2 just ignoring my /app/app_controller.php completely?! (also i tried putting it in /app/c