Re: session->check error but I'm not using sessions yet

2008-05-27 Thread scoby

I was trying use a variable I created called $sessions
which seems to be reserved for the cake session variable ( or maybe
php? )

Anyhoo, just changing the name of my variable fixed the problem.

Thanks.

On May 26, 3:54 pm, "b logica" <[EMAIL PROTECTED]> wrote:
> Check that your app/core.php has:
>
> Configure::write('Session.start', true);
>
> On Mon, May 26, 2008 at 9:04 AM, scoby <[EMAIL PROTECTED]> wrote:
>
> > I get the following error on my page
>
> > Fatal error: Call to a member function check() on a non-object in D:
> > \htdocs\globaltrans\cake\libs\view\layouts\default.ctp on line 50
>
> > the line mentioned has this:
>
> > if ($session->check('Message.flash')):
> >$session->flash();
> > endif;
>
> > I haven't used any session vars in my controller or my view and I
> > thought that the session helper would be created automatically.
>
> > Do I need to do something to get Session to start up?
>
> > I'm using 1.2.0.6311 beta. on windows with xampp
> >  PHP/5.1.6
>
> > my controller:
> >http://pastebin.com/m643da928
>
> > my view just has the following
> >http://pastebin.com/d3dd2882f
>
> > Any help appreciated :)
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: session->check error but I'm not using sessions yet

2008-05-27 Thread scoby

That line is present and correct in app/config/core.php

On May 26, 3:54 pm, "b logica" <[EMAIL PROTECTED]> wrote:
> Check that your app/core.php has:
>
> Configure::write('Session.start', true);
>
> On Mon, May 26, 2008 at 9:04 AM, scoby <[EMAIL PROTECTED]> wrote:
>
> > I get the following error on my page
>
> > Fatal error: Call to a member function check() on a non-object in D:
> > \htdocs\globaltrans\cake\libs\view\layouts\default.ctp on line 50
>
> > the line mentioned has this:
>
> > if ($session->check('Message.flash')):
> >$session->flash();
> > endif;
>
> > I haven't used any session vars in my controller or my view and I
> > thought that the session helper would be created automatically.
>
> > Do I need to do something to get Session to start up?
>
> > I'm using 1.2.0.6311 beta. on windows with xampp
> >  PHP/5.1.6
>
> > my controller:
> >http://pastebin.com/m643da928
>
> > my view just has the following
> >http://pastebin.com/d3dd2882f
>
> > Any help appreciated :)
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Integrate cakephp with existing app sessions

2007-04-03 Thread scoby

I've read a few of the messages here about integration but I can't
seem to figure out my situation

My existing app sets a session var on login and checks this for each
subsequent page.
When creating my cake app I thought it would be a simple matter of
using $this->Session
to access the vars populated by my old script
But I can't seem to access them at all

I saw a note on the type of sessions possible with cake:
cake
database
and php
Aha! I'll change it to php so that they are using the same sessions
but this appears to be the default... and I still can't access the
other app's session.

if I print_r $_SESSION I get some values that are set by cake
but I'm not sure where or how this happens
it seems to be a seperate session to the existing app
Any advice on how to stop cake from doing its own session thing while
still starting a regualr session for every page?
can I remove some code and replace it with session_start()?

Thanks in advance .

scoby.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---