Thanks, but this still doesn't work.
I get the same error when I try this, in either app_controller.php or
auth_controller.php. I also tried putting the line:
var $uses = array('Session');
in each of auth_controller.php and app_controller.php, and got the
second error described above (Class 'AppModel' not found...)
which makes me wish I knew in what order the objects are getting
loaded and how to control this, so that I can make sure everything's
loaded in the proper order. Any suggestions?
Thanks again,
Chris
On Jan 5, 4:38 pm, chewie124 <[EMAIL PROTECTED]> wrote:
> In your app/app_controller.php, try adding the Session object to the
> components used,
>
> var $components = array('Session');
>
> Rich
> On Jan 4, 7:33 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > Hi All,
>
> > This is my first post here, and I'm working on my first project with
> > cake. I've read through documentation and previous posts here until
> > I've gone cross-eyed, so forgive me if the answer to this question
> > seems obvious; it's just not obvious to me.
>
> > First off, I'm using cake ver 1.1.18.5850. I downloadedusermgmtfrom
> > cakeforge and tried to incorporate it into my app. I can't get it to
> > work, and the first error it gives me is:
>
> > Fatal error: Class 'Session' not found in .../auth.php on line 114
>
> > So, I try the ugly fix:
>
> > include_once(ROOT.DS.APP_DIR.DS.'models'.DS.'session.php');
>
> > at line 111. This was reported to work in one forum entry I read.
> > However, this gives me the error:
>
> > Fatal error: Class 'AppModel' not found in .../app/models/session.php
> > on line 17
>
> > Which leads me to believe that I'm just loading things in the wrong
> > order, and I don't want to go down that rabbit hole.
>
> > Another forum entry said to use loadModel('Session') to fix the
> > problem, but I can't find instructions for how and where to use this
> > in the manual or the API documentation. Can anyone provide an example
> > of how to getusermgmtrunning?
>
> > Thanks,
> > Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---