; 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
*cake version:* 2.1.1
*chrome version:* 18.0.1025.142 m Latest
*code to reproduce error:*
put in controller action:
public function testflash(){
$this->Session->setFlash("flash message will not be shown in chrome");
$this->redirect(array('action' => 'index
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
Isn´t the ->flash a methode of 1.3 ? Do you use 1.2 core?
As I know in 1.2 you have to ->setflash and a redirect...
On 9 Jul., 21:51, gautam lakum wrote:
> I am getting this error in my default.ctp layout.
>
> Notice (8): Undefined variable: session [APP\views\layouts
> \default.ctp, line 74]
>
Thanks jeremy, it is working now.
On Jul 9, 1:28 pm, Jeremy Burns | Class Outfit
wrote:
> If you are on 1.3, don't forget to add the Session helper and Session
> component to your app_controller.
>
> Jeremy Burns
> Class Outfit
>
> jeremybu...@classoutfit.comhttp://www.classoutfit.com
>
> On 9 J
If you are on 1.3, don't forget to add the Session helper and Session component
to your app_controller.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 9 Jul 2010, at 20:51, gautam lakum wrote:
> I am getting this error in my default.ctp layout.
>
>
> Noti
I am getting this error in my default.ctp layout.
Notice (8): Undefined variable: session [APP\views\layouts
\default.ctp, line 74]
Code | Context
Fatal error: Call to a member function flash() on a non-object in C:
\wamp\www\rentcar1\app\views\layouts\default.ctp on line 74
This is the layout
; It did not work with me , is there any other alternative to
> setFlash() ?
>
> Greetings.
> On May 20, 7:16 pm, Jeremy Burns wrote:
>> Seems like overkill to me. Just use $this->Session->setFlash('Here is my
>> message'); Then do echo $this->Session-
Hi Jeremy,
Thanks for your reply.
It did not work with me , is there any other alternative to
setFlash() ?
Greetings.
On May 20, 7:16 pm, Jeremy Burns wrote:
> Seems like overkill to me. Just use $this->Session->setFlash('Here is my
> message'); Then do echo $this->
Seems like overkill to me. Just use $this->Session->setFlash('Here is my
message'); Then do echo $this->Session->flash(); - this not only displays your
message but also clears it out of the cache.
Jeremy Burns
jeremybu...@me.com
On 20 May 2010, at 18:16, sami_bk wrote
Hi all,
I am new to CakePHP and i am building a small app.
i use Session->setFlash('message') to display notifications to the
users .
The notification is displayed in the default layout and i delete the
flash messega from the session using this code
if ($session->chec
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
Reinstalled FF, works perfectly.
--
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-...@googlegroups.com.
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com.
For more options, v
t;
> > > > Hello,
>
> > > > Here's my problem
>
> > > > Something this simple:
>
> > > > // controller
>
> > > > Class ExsController extends AppController{
> > > > public function list(){
> >
ends AppController{
> public function list(){
> $this->Session->setFlash('Hello');
> $this->redirect('/exs/new',null,true); // or redirect + die()}
>
> public function new(){}
>
> }
>
> // view layout
>
> flash() ?>
&
Hello,
Here's my problem
Something this simple:
// controller
Class ExsController extends AppController{
public function list(){
$this->Session->setFlash('Hello');
$this->redirect('/exs/new',null,true); // or redirect + die()
}
public functio
Hi All,
I am trying to change the class attribute for my flash message by
writing this in my controller:
$this->Session->setFlash($errMsg, 'default', array('class' =>
'errormsg'));
AND I GET THE DEFAULT IN MY VIEW:
My view is not cached because chang
Sorry for the late reply.Yes, you are right, if you are doing it in
views/layouts/default.ctp
On Aug 21, 6:53 am, kdubya wrote:
> On Aug 19, 9:01 am, zaboo wrote:
>
> > Don't echo $this->Session->setFlash()
>
> > On Aug 19, 8:27 am, Chander Bhan wrote:
>
&g
Yes.
On Aug 21, 8:53 am, kdubya wrote:
> On Aug 19, 9:01 am, zaboo wrote:
>
> > Don't echo $this->Session->setFlash()
>
> > On Aug 19, 8:27 am, Chander Bhan wrote:
>
> > > I always get the digit 1 in the next line of the message sent through
> &
On Aug 19, 9:01 am, zaboo wrote:
> Don't echo $this->Session->setFlash()
>
> On Aug 19, 8:27 am, Chander Bhan wrote:
>
> > I always get the digit 1 in the next line of the message sent through
> > Session->setFlash from controller, need help
I don't
thanks a lot for helping.
On Aug 19, 6:01 pm, zaboo wrote:
> Don't echo $this->Session->setFlash()
>
> On Aug 19, 8:27 am, Chander Bhan wrote:
>
> > I always get the digit 1 in the next line of the message sent through
> > Session-&
> > Session->setFlash from controller, need help
>
> Are you echoing the Session->setFlash() call from the controller?
>
> Best regards.
>
> --
> MARCELO DE F. ANDRADE
> Belem, PA, Amazonia, Brazil
> Linux User #221105
>
> http://mfandrade.wordpress.com
Don't echo $this->Session->setFlash()
On Aug 19, 8:27 am, Chander Bhan wrote:
> I always get the digit 1 in the next line of the message sent through
> Session->setFlash from controller, need help
--~--~-~--~~~---~--~~
You received this mes
On Wed, Aug 19, 2009 at 9:27 AM, Chander Bhan wrote:
>
> I always get the digit 1 in the next line of the message sent through
> Session->setFlash from controller, need help
Are you echoing the Session->setFlash() call from the controller?
Best regards.
--
MARCELO DE F. AN
I always get the digit 1 in the next line of the message sent through
Session->setFlash from controller, need help
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group,
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
// Save the URL of where you want to go.
$this->Session->setFlash('You must login to view this area.');
$this->Session->write('RedirectURL', Router::url('', false));
$this->redirect('/a
pm, Baz <[EMAIL PROTECTED]> wrote:
>
> > Because that's what setFlash does???
>
> > On Feb 16, 2008 10:04 AM, Samuel DeVore <[EMAIL PROTECTED]> wrote:
>
> > > wow you echoed again ;)
>
> > > On Feb 16, 2008 7:20 AM, herc <[EMAIL PROTECTED]
t; > On Feb 16, 2008 7:20 AM, herc <[EMAIL PROTECTED]> wrote:
>
> > > Any idea why my $this->Session->setFlash('foo'); outputs Foo 1 in my
> > > view? :)
> > > CODE:
> > > foo1
>
> > --
> > --
> > (the
wow you echoed again ;)
On Feb 16, 2008 7:20 AM, herc <[EMAIL PROTECTED]> wrote:
>
> Any idea why my $this->Session->setFlash('foo'); outputs Foo 1 in my
> view? :)
> CODE:
> foo1
>
> >
>
--
--
(the old fart) the advice is free, the la
Any idea why my $this->Session->setFlash('foo'); outputs Foo 1 in my
view? :)
CODE:
foo1
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this gro
On Jan 22, 10:57 pm, powtac <[EMAIL PROTECTED]> wrote:
> But what can I do when Im using beforeFind()? I dont call this
> function in my controller, it is called automatically.
Don't.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
But what can I do when Im using beforeFind()? I dont call this
function in my controller, it is called automatically.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email
Or you can pass the Session component to your model function as
parameter, so that you can access this component from there,
In your Controller,
$this->YourModelName->yourModelFunction($this->session)
And in your Model function
function yourModelFunction($session)
{
$session->se
On Jan 5, 6:21 pm, MikeK <[EMAIL PROTECTED]> wrote:
> I moved some code from a controller to the model, and the code set
> some flash error msgs using the session component setFlash call.
>
> I didn't realize it wasn't working until someone triggered the error
> today -- is there any way to make
According to both APIs (1.1.19 and 1.2) the Session helper supports a
write() method - but both APIs also say "This method should not be
used in a view". :)
On Jan 5, 11:21 am, MikeK <[EMAIL PROTECTED]> wrote:
> I moved some code from a controller to the model, and the code set
> some flash er
I moved some code from a controller to the model, and the code set
some flash error msgs using the session component setFlash call.
I didn't realize it wasn't working until someone triggered the error
today -- is there any way to make that work or do I need to
restructure the interface to the rou
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
> 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
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
i have a similar problem,
i want to have *all* system messages (incl. form validation errors) in
views
displayed in JS popups instead of html rendering.
does anybody know a smart way to accomplish this ?
thanks ! jyrgen
--~--~-~--~~~---~--~~
You received this m
Nobody an idea?
On 23 Mrz., 23:11, "Preloader" <[EMAIL PROTECTED]> wrote:
> Ah of course: I'm using Cake 1.2.x.x_22.03.2007
>
> :-)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this
Ah of course: I'm using Cake 1.2.x.x_22.03.2007
:-)
--~--~-~--~~~---~--~~
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,
Hello Bakers,
I have problems using Session::setFlash in the right way.
Here is a very simplified version of my AppController.
class AppController extends Controller
{
var $helpers = array('Html', 'Form');
var $components = array('Session'
On Feb 18, 6:55 pm, "Guga" <[EMAIL PROTECTED]> wrote:
> Salve, salve galera!!! Eu estou começando a aprender como utilizar o
> cake e estou com algumas dúvidas espero que vc´s possam me ajudar.
>
> Resumo: Estou com um probleminha. Quando eu utilizo a função
You shouldn't post your questions in any other language than English.
If you stick your posts to English everybody will be able to
understand what you say and help you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
a aprender como utilizar o
> cake e estou com algumas dúvidas espero que vc´s possam me ajudar.
>
> Resumo: Estou com um probleminha. Quando eu utilizo a função $this-
> >Session->setFlash("Mensagem"); especificamente no Internet Explorer
> através da função beforeF
Salve, salve galera!!! Eu estou começando a aprender como utilizar o
cake e estou com algumas dúvidas espero que vc´s possam me ajudar.
Resumo: Estou com um probleminha. Quando eu utilizo a função $this-
>Session->setFlash("Mensagem"); especificamente no Internet Explorer
a
Congratulations, you found a bug in Cake. It's shocking, I know. But
yes, it still does happen from time to time. Should be fixed in the
next couple hours. If you think there might be a bug, you can report
it at https://trac.cakephp.org, and it'll get fixed a little quicker.
Thanks.
--~--~-
7;alternate CSS flash note' section).
The problem I've found is that I can't use the HTML helper as part of
the layout rendered with Session->setFlash(). It always barfs up the
error:
Fatal error: Call to a member function on a non-object in /app/views/layouts/inpageFlash.thtm
79 matches
Mail list logo