Thanks a lot everyone!

On Dec 11, 2007 12:13 AM, daphonz <[EMAIL PROTECTED]> wrote:

>
> Also make sure you have something in your view to display the message:
>
> <?php
>        if($session->check('Message.flash')):
>                $session->flash();
>        endif;
> ?>
>
> Or the like.
>
> -Casey
>
> On Dec 9, 10:44 pm, "Louie Miranda" <[EMAIL PROTECTED]> wrote:
> > Got this working..
> >
> > Just add..
> >
> >                 $this->Session->setFlash('Sorry, the information you\'ve
> > entered is incorrect.');
> >                 $this->redirect('login');
> >
> > *$this->redirect('login');*
> >
> > So, there will be no blank page. And the flash message will be shown on
> the
> > login()
> >
> > Louie
> >
> > On Dec 10, 2007 8:51 AM, Louie Miranda <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > Guys,
> >
> > > this is fairly simple setFlash. But, i wonder why it is now showing
> up?
> >
> > > A few of my simple auth codes..
> > > <?php
> > > class UsersController extends AppController
> > > {
> > >     var $name = "Users";
> > >     var $helpers = array('Html', 'Form', 'Session');
> >
> > >    ....
> >
> > >     function login()
> > >     {
> > >         if(empty($this->data) == false)
> > >         {
> > >             if(($user =
> $this->User->validateLogin($this->data['User']))
> > > == true)
> > >             {
> > >                 $this->Session->write('User', $user);
> > >                 $this->Session->setFlash('You\'ve successfully logged
> > > in.');
> > >                 $this->redirect('/statistics/display');
> > >                 exit();
> > >             }
> > >             else
> > >             {
> > >                 $this->Session->setFlash('Sorry, the information
> you\'ve
> > > entered is incorrect.');
> > >                 exit();
> > >             }
> > >         }
> > >     }
> > > ...
> > > ?>
> >
> > > I can successfully login, and it redirects right away. But, i could
> not
> > > see the flash message. Did, i missed something here?
> > > I am using the latest 1.2.x (pre-beta)
> >
> > > Please help!
> >
> > > --
> > > Louie Miranda ([EMAIL PROTECTED])
> > >http://www.axishift.com
> >
> > > Security Is A Series Of Well-Defined Steps
> > > chmod -R 0 / ; and smile :)
> >
> > --
> > Louie Miranda ([EMAIL PROTECTED])http://www.axishift.com
> >
> > Security Is A Series Of Well-Defined Steps
> > chmod -R 0 / ; and smile :)
>
> >
>


-- 
Louie Miranda ([EMAIL PROTECTED])
http://www.axishift.com

Security Is A Series Of Well-Defined Steps
chmod -R 0 / ; and smile :)

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to