Thanks for the feedback...now the flash message is showing on saving
from controller.....but the auth messages are not still displaying ie
on trying to log in the auth failure message is not showing.... am
still missing anything ???? as i am merging from cakephp 1.2.9 to 1.3.
Below is the code section:
Code from app controller:
$this->Auth->loginError = 'Sorry, login failed. Either your username
or password are incorrect.';
$this->Auth->authError = 'The page you tried to access is
restricted. You have been redirected to the page below.';
$this->Auth->loginRedirect = '/userhome';
$this->Auth->logoutRedirect = '/';
And Session Flash code in login template:
<?php
if ($session->check('Message.flash')):
echo $session->flash();
endif;
if ($session->check('Message.auth')):
echo $session->flash('auth');
endif;
?>
Any help will be very helpful.
Thanks in advance.
On Sep 22, 8:15 pm, dw <[email protected]> wrote:
> Make sure you have:
> echo $session->flash();
>
> in your layout. I think I remember that changing from 1.2 to1.3
>
> -d
>
> On Sep 22, 8:19 am, Joffin Joy <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hi Sir,
>
> > I was working with 1.2.9 for a long time and never updated the
> >cakephp.
>
> > But when i updated the cake to1.3the save is working but theflash
> >messageisnotshowing.
>
> > Please help me as i want to integrate facebook connect to my app but
> >cakephp1.2.9 isnotworking correctly with facebook login.
>
> > Any help is much appreciated.
>
> > Thanks in advance.
>
> > Below is code:
>
> > function add() {
> > $this->layout = 'innerpage';
> > if (!empty($this->data)) {
> > $this->City->create();
> > if ($this->City->save($this->data)) {
> > $this->Session->setFlash(__('The city has
> > been saved', true));
> > $this->redirect(array('action' => 'index'));
> > } else {
> > $this->Session->setFlash(__('The city
> > couldnotbe saved. Please,
> > try again.', true));
> > }
> > }
> > $countries = $this->City->Country->find('list');
> > $this->set(compact('countries'));
> > }
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php