<?php
class PagesController extends AppController{
var $components = array('Session');
var $uses = array('Page','PageComment');
function display() {
echo $this->Session->read(('user_id');
}
}
?>
On May 27, 7:22 pm, John Andersen <[email protected]> wrote:
> How does your pages controller look like, the code?
> Enjoy,
> John
>
> On May 27, 10:11 am, Binu <[email protected]> wrote:
>
> > Hi,
>
> > I am using cakephp1.2 . I have override the pages controller. While
> > login from my application, Im setting thesessionand redirecting to
> > pages controller, but there I couldnotable to get thesession. If I
> > redirect to some other controller, Im getting thesessionover there.
> > I have a table with name "pages", and when the user clicks on the
> > links (passing page name), Im taking data from that table and
> > displaying using pages_controller.
>
> > Can Inotuse "pages" as table name ? Orsessionwon't work in
> > pages_controller ?
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