Re: Formatar a mensagem - $this->Session->setFlash(__('minha msg'));

2013-04-22 Thread Tony Messias
; Então, na página default.ctp eu tenho a seguinte linha: > $this->Session->flash(); ?> >> Quando uma mensagem é setada é essa linha que exibe, correto? >> >> Então se eu tenho uma mensagem de sucesso: $this->Session->setFlash(__('* >> *Usuário cadastrado com suces

Re: Formatar a mensagem - $this->Session->setFlash(__('minha msg'));

2013-04-22 Thread Anderson Moraes
o, na página default.ctp eu tenho a seguinte linha: $this->Session->flash(); ?> > Quando uma mensagem é setada é essa linha que exibe, correto? > > Então se eu tenho uma mensagem de sucesso: > $this->Session->setFlash(__('Usuário cadastrado com sucesso.')

Re: Formatar a mensagem - $this->Session->setFlash(__('minha msg'));

2013-04-22 Thread Tony Messias
antoniosmessias> 2013/4/22 Anderson Moraes > Boa tarde pessoal, > > Então, na página default.ctp eu tenho a seguinte linha: $this->Session->flash(); ?> > Quando uma mensagem é setada é essa linha que exibe, correto? > > Então se eu tenho uma mensagem de su

Formatar a mensagem - $this->Session->setFlash(__('minha msg'));

2013-04-22 Thread Anderson Moraes
Boa tarde pessoal, Então, na página default.ctp eu tenho a seguinte linha: Session->flash(); ?> Quando uma mensagem é setada é essa linha que exibe, correto? Então se eu tenho uma mensagem de sucesso: $this->Session->setFlash(__('Usuário cadastrado com sucesso.'

Re: Fatal Error on call to '$this->Session->setFlash'

2012-09-13 Thread Tilen Majerle
AppController extends "Controller" class...and in this class it was automatically added this component. -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/9/13 McScreech > Thank you very much, I had forgot to include the Session component. > > I haven't begun a new project in some time (sinc

Re: Fatal Error on call to '$this->Session->setFlash'

2012-09-13 Thread McScreech
Thank you very much, I had forgot to include the Session component. I haven't begun a new project in some time (since about cake 1.2) - forgot some basis setup stuff, I guess I was thinking the basic components and helpers were included by default. I do wonder however, how it _was_ able to work

Re: Fatal Error on call to '$this->Session->setFlash'

2012-09-13 Thread Tilen Majerle
l to a member function setFlash() on a non-object' > which happens on any call to '$this->Session->setFlash' as noted in the > default edit (or add) function below? > > I was adding options to the related form (option lists, labels, titles) > when I broke it and have been

Fatal Error on call to '$this->Session->setFlash'

2012-09-13 Thread McScreech
G'day, I do not understand how I induced this error: 'Error: Call to a member function setFlash() on a non-object' which happens on any call to '$this->Session->setFlash' as noted in the default edit (or add) function below? I was adding options to the related for

Re: $this->Session->setFlash problem

2010-12-22 Thread euromark
o remove that 1 > > > Thanks > > Sherry > > -- > > View this message in context: > >http://cakephp.1045679.n5.nabble.com/this-Session-setFlash-problem-tp... > > Sent from the CakePHP mailing list archive at Nabble.com. > > > Check out the new CakePHP

Re: $this->Session->setFlash problem

2010-12-22 Thread Stephen
> Thanks > Sherry > -- > View this message in context: > http://cakephp.1045679.n5.nabble.com/this-Session-setFlash-problem-tp3314357p3314653.html > Sent from the CakePHP mailing list archive at Nabble.com. > > Check out the new CakePHP Questions site http://cakeqs.org and help

Re: $this->Session->setFlash problem

2010-12-21 Thread sherzo
Thank you guys! yes Im using 1.2 and after I removing "echo" I'm not having that "1"!!! I spent hours last night to remove that 1 Thanks Sherry -- View this message in context: http://cakephp.1045679.n5.nabble.com/this-Session-setFlash-problem-tp3314357p3314653.h

Re: $this->Session->setFlash problem

2010-12-21 Thread euromark
what version are u using? sounds to me like you you use cake1.2 but this piece of code is cake1.3 style dont echo it in 1.2 $session->flash(); On 22 Dez., 02:02, Ryan Schmidt wrote: > On Dec 21, 2010, at 18:51, sherzo wrote: > > > I have the following lines in my controller: >

Re: $this->Session->setFlash problem

2010-12-21 Thread Ryan Schmidt
On Dec 21, 2010, at 18:51, sherzo wrote: > I have the following lines in my controller: > $this->Session->setFlash('blabla'); > $this->redirect(array('action'=>'unsuccessful')); > exit(); > > and this part in my view: > if

$this->Session->setFlash problem

2010-12-21 Thread sherzo
Hi All I have the following lines in my controller: $this->Session->setFlash('blabla'); $this->redirect(array('action'=>'unsuccessful')); exit(); and this part in my view: if ($session->check('Message.flash')) { echo $session->f

Re: cakephp 1.3 $this->Session->setFlash

2010-03-18 Thread Johannes Goll
t; You need to do: > > echo $session->flash(); now. > > Jeremy Burns > jeremybu...@me.com > > On 18 Mar 2010, at 13:06, Johannes Goll wrote: > >> Hi, >> >> I am migrating from 1.2 to cakephp 1.3 and am trying to >> switch to the new $th

Re: cakephp 1.3 $this->Session->setFlash

2010-03-18 Thread Jeremy Burns
You need to do: echo $session->flash(); now. Jeremy Burns jeremybu...@me.com On 18 Mar 2010, at 13:06, Johannes Goll wrote: > Hi, > > I am migrating from 1.2 to cakephp 1.3 and am trying to > switch to the new $this->Session->setFlash functionality that > uses

cakephp 1.3 $this->Session->setFlash

2010-03-18 Thread Johannes Goll
Hi, I am migrating from 1.2 to cakephp 1.3 and am trying to switch to the new $this->Session->setFlash functionality that uses elements: Projects Controller: function edit($id = null) { ... $this->Session->setFlash('The Project has been saved','message'); $this-

Re: $this->Session->setFlash();

2010-01-03 Thread j0n4s.h4rtm...@googlemail.com
I use this to make it lots shorter: $this->Session->setFlash(___('Success Message'), 'flashes/success'); In app/views/layouts/flashes I have P.s. in app/config/boostrap.php I have function ___($string) { return __($string, true); } Check out the new C

RE: $this->Session->setFlash();

2010-01-01 Thread Dave
->Session->setFlash(); Hi Dave Here's how you can do it: $this->Session->setFlash(__('Your message.', true), true, array ('class' => 'yourClass')); On Jan 2, 2:35 am, "Dave" wrote: > I was wondering is there a way to add a class to t

Re: $this->Session->setFlash();

2010-01-01 Thread Jeremy Burns
Hi Dave Here's how you can do it: $this->Session->setFlash(__('Your message.', true), true, array ('class' => 'yourClass')); On Jan 2, 2:35 am, "Dave" wrote: > I was wondering is there a way to add a class to the session from the >

$this->Session->setFlash();

2010-01-01 Thread Dave
I was wondering is there a way to add a class to the session from the controller? The setflash as far as i can see is used for alerting user after a save attempt so $this->Session->setFlash(__('Information Updated.', true)); or $this->Session->setFlash(__('Erro

Re: Problem with $this->Session->setFlash when using caching

2009-06-17 Thread Steve
thanks for the replies Marcel, sounds like sort of the same problem. strange thing is that the flash message does work when i do not specify a custom layout in setFlash... but then I can not have the nice effect of removing the flash message after few seconds. On Jun 17, 11:45 pm, Marcel wrote:

Re: Problem with $this->Session->setFlash when using caching

2009-06-17 Thread Marcel
Steve wrote: > Well, when I activate this line in core.php: > > Configure::write('Cache.disable', true); > > Everything works like expected.. > > But then you have no caching at all... See: https://trac.cakephp.org/ticket/6034 --~--~-~--~~~---~--~~ You receive

Re: Problem with $this->Session->setFlash when using caching

2009-06-17 Thread Steve
Well, when I activate this line in core.php: Configure::write('Cache.disable', true); Everything works like expected.. But then you have no caching at all... On Jun 17, 3:00 pm, Marcel wrote: > Looks like that this is also not working within nocache, like the > FormHelper... :( --~--~

Re: Problem with $this->Session->setFlash when using caching

2009-06-17 Thread Marcel
Looks like that this is also not working within nocache, like the FormHelper... :( --~--~-~--~~~---~--~~ 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 u

Problem with $this->Session->setFlash when using caching

2009-06-16 Thread Steve
Hello everybody, I have a problem with some cakephp (version 1.2.3.8166) code. It concerns using $this->Session->setFlash in a controller action. Part of the controller code: $this->Session->setFlash(__('Everything fine.', true), 'flashinfo'); $this->redirect(

Re: Problem with $this->Session->setFlash(__('Hidden value changed'));

2009-04-08 Thread Elavazhagan chidambaram
__()function is using Localization & Internationalization if u want the __()function $this->Session->setFlash(__('Hidden value changed',true));otherwise $this->Session->setFlash('Hidden value changed');On Tue, Apr 7, 2009 at 5:11 PM, Toby wrote: > >

Re: Problem with $this->Session->setFlash(__('Hidden value changed'));

2009-04-07 Thread Toby
1 pm, Toby wrote: > Morning all, > > I have a problem with the following line in my code... > > $this->Session->setFlash(__('Hidden value changed')); > > It is printing the translated 'Hidden value changed' to the screen > rather than setting the fl

Re: Problem with $this->Session->setFlash(__('Hidden value changed'));

2009-04-07 Thread Günther Theilen
Hi, Toby wrote: > I have a problem with the following line in my code... > > $this->Session->setFlash(__('Hidden value changed')); try this: $this->Session->setFlash(__('Hidden value changed', true)); http://api.cakephp.org/file

Problem with $this->Session->setFlash(__('Hidden value changed'));

2009-04-07 Thread Toby
Morning all, I have a problem with the following line in my code... $this->Session->setFlash(__('Hidden value changed')); It is printing the translated 'Hidden value changed' to the screen rather than setting the flash message. If I remove the __() function it work

Re: $this->Session->setFlash(' -- msg here -- '); not showing up on 1.2.x

2007-12-10 Thread Louie Miranda
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 infor

Re: $this->Session->setFlash(' -- msg here -- '); not showing up on 1.2.x

2007-12-10 Thread daphonz
; { > > if(empty($this->data) == false) > > { > > if(($user = $this->User->validateLogin($this->data['User'])) > > == true) > > { > > $this->Session->write('User'

Re: $this->Session->setFlash(' -- msg here -- '); not showing up on 1.2.x

2007-12-09 Thread Louie Miranda
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

$this->Session->setFlash(' -- msg here -- '); not showing up on 1.2.x

2007-12-09 Thread Louie Miranda
n->write('User', $user); $this->Session->setFlash('You\'ve successfully logged in.'); $this->redirect('/statistics/display'); exit(); } else { $this-&g

Re: Problems with $this->Session->setFlash in layout

2007-05-13 Thread [EMAIL PROTECTED]
gt; wrote: > Hi everyone. As you can see by my handles name I am new to cakePHP so > please bear with me. OK I seem to be having problems with the > $this->Session->setFlash. I basically am following what was recommended in > > this link ->http://bakery.cakephp.org/articles

Problems with $this->Session->setFlash in layout

2007-04-25 Thread NewToCakePHP
Hi everyone. As you can see by my handles name I am new to cakePHP so please bear with me. OK I seem to be having problems with the $this- >Session->setFlash. I basically am following what was recommended in this link -> http://bakery.cakephp.org/articles/view/flashing-with-cakephp bu