; 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
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.')
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
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.'
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
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
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
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
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
> 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
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
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:
>
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
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
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
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
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-
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
->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
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
>
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
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:
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
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... :(
--~--~
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
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(
__()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:
>
>
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
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
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
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
; {
> > if(empty($this->data) == false)
> > {
> > if(($user = $this->User->validateLogin($this->data['User']))
> > == true)
> > {
> > $this->Session->write('User'
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
n->write('User', $user);
$this->Session->setFlash('You\'ve successfully logged in.');
$this->redirect('/statistics/display');
exit();
}
else
{
$this-&g
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
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
36 matches
Mail list logo