Boa tarde pessoal,
Então, na página default.ctp eu tenho a seguinte linha: ?php echo
$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.')); eu
gostaria
2013/4/22 Anderson Moraes anderson@gmail.com
Boa tarde pessoal,
Então, na página default.ctp eu tenho a seguinte linha: ?php echo
$this-Session-flash(); ?
Quando uma mensagem é setada é essa linha que exibe, correto?
Então se eu tenho uma mensagem de sucesso:
$this-Session-setFlash
default.ctp eu tenho a seguinte linha: ?php echo
$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.')); eu
gostaria que o background-color da minha mensagem
Seguinte, o método setFlash aceita 4 parâmetros: 1) String da mensagem; 2) *
element* que será usado; 3) array de parâmetros; e 4) índice da mensagem na
sessão;
Vejo pelo menos três formas de você fazer isso:
1. Criando um *element* para cada tipo de mensage;
2. Com apenas um *element* e
if($this-{$this-modelClass}-delete( $id )){
$this-Session-setFlash(
__('MontantRecharge_Delete_OK'),'notif',array('type' = 'success'));
}else{
$this-Session-setFlash(
__('MontantRecharge_Delete_KO'),'notif',array('type' = 'error
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 form (option lists, labels, titles
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 looking for misplaced or missing closing
parens
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
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 scre...@sympatico.ca
Thank you very much, I had forgot to include the Session component.
I haven't begun a new project in
*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'));
}
in the default layout:
?php echo
You can use Router like:
$url = Router::url(array('controller'='users', 'action'='login'));
$this-Session-setFlash(sprintf('Please a href=%slogin/a', $url));
On Friday, March 9, 2012 3:47:17 AM UTC+1, Thiago Silva wrote:
Hello,
I'm trying to insert links in the Session-setFlash method
Hello,
I'm trying to insert links in the Session-setFlash method, but it's
not working.
I've tried to use Html helper in the controller but it crashed.
I'm using version 2.1.
Thanks,
Thiago
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new
, 10:49 am, john lyles confidentia...@gmail.com wrote:
I have a similar problem and wondering if this is a problem with
1.3.10
On May 18, 3:11 pm, Michael Gaiser mjgai...@gmail.com wrote:
This line no longer seems to output a message nor does any other use of
setFlash
i have an setFlash issue as well..whenever i'm using $ajax-
submit() the setFlash message doesn't appear on my page? what's
wrong ?
On May 19, 2:11 am, Michael Gaiser mjgai...@gmail.com wrote:
This line no longer seems to output a message nor does any other use of
setFlash
@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of Cruisine
Sent: Thursday, June 16, 2011 11:34 PM
To: CakePHP
Subject: Re: setFlash issue in 1.3?
i have an setFlash issue as well..whenever i'm using $ajax-
submit() the setFlash message doesn't appear on my page? what's
wrong
hi guys,recently i've been using ajax submit to save the data into
database...but whenever i use $ajax-submit(), setFlash doesn't appear
on my page.i'm so curious what's wrong with the setFlash...and
it'll terrible since i can't show to the user whether the data have
already saved
, June 16, 2011 11:34 PM
To: CakePHP
Subject: Re: setFlash issue in 1.3?
i have an setFlash issue as well..whenever i'm using $ajax-
submit() the setFlash message doesn't appear on my page? what's
wrong ?
On May 19, 2:11 am, Michael Gaiser mjgai...@gmail.com wrote:
This line
@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of Cruisine
Sent: Friday, June 17, 2011 12:37 AM
To: CakePHP
Subject: Re: setFlash issue in 1.3?
@Krissy : thx for the answer...yeah,u r right...and it's logically
true.. so can u give me an example using javascript to update the
area?
On Jun 17, 9
setFlash() requires the whole page to reload to work, you cant fire
off an AJAX call and expect some random flash message to appear in the
page.
On Jun 16, 7:48 pm, Cruisine cruisin...@yahoo.co.id wrote:
hi guys,recently i've been using ajax submit to save the data into
database...but whenever
I have a similar problem and wondering if this is a problem with
1.3.10
On May 18, 3:11 pm, Michael Gaiser mjgai...@gmail.com wrote:
This line no longer seems to output a message nor does any other use of
setFlash.
$this-Session-setFlash('Cookie created. It will expire
'.$this-Time-niceTime
This line no longer seems to output a message nor does any other use of
setFlash.
$this-Session-setFlash('Cookie created. It will expire
'.$this-Time-niceTime($cookie['expire']));
So when I was using 1.2 my code seemed to work out ok. Since migrating to
1.3, I have made sure that Session
Hola gente, resulta que tengo un sitio en el que por diferentes
circunstancias se hacen ciertos informes sobre procesos que se llevaron a
cabo como ¨guardado correctaemnte¨, ¨hubo un error¨ etc bueno todos los
errores los estoy poniendo de la forma siguiente:
$this-Session-setFlash
Hello Dr. Loboto,
Thank you, it works.
Leo
On 13 jan, 02:34, Dr. Loboto drlob...@gmail.com wrote:
You see page cached by browser when hit previous button there.
Disable cache at all by $this-disableCache() in controller, or do not
use previous button.
On 13 янв, 02:14, lvdb
Hello Amit,
Thank you for your reply.
I will try to explain it
First I am editing a record in the edit view. When I save the record
it redirects me to the index view and give a message Job has been
updated.
Second step is I go to the detail view and check the details after
that I go back to the
You see page cached by browser when hit previous button there.
Disable cache at all by $this-disableCache() in controller, or do not
use previous button.
On 13 янв, 02:14, lvdb lj.vandenb...@kpnplanet.nl wrote:
Hello Amit,
Thank you for your reply.
I will try to explain it
First I am
Hello Amit,
Thank you for your answer. When I refresh the view page the message is
gone.
It is not done automatically. How can I refresh the page?
Leo
On 10 jan, 07:31, Amit Badkas amit.sanis...@gmail.com wrote:
Hi,
Does the details page output flash message? You don't need to delete flash
Hi,
As I already mentioned You don't need to delete flash message in session
explicitly, $this-Session-flash() does it automagically., the message
doesn't appear after page refresh.
In the first message you mentioned But when I go after the edit to the
details view and back to the index view it
Hi,
Does the details page output flash message? You don't need to delete flash
message in session explicitly, $this-Session-flash() does it
automagically.
Amit Badkas
PHP Applications for E-Biz: http://www.sanisoft.com
On Sat, Jan 8, 2011 at 1:13 AM, lvdb lj.vandenb...@kpnplanet.nl wrote:
Hello,
I have made a flash message your job has been updated. When I edit a
job and have been redirected to the index view the message appears
(and after 3 seconds it hides). This is working fine. But when I go
after the
edit to the details view and back to the index view it gives me the
message
Thanks for your answer.
Leo
On 29 dec 2010, 17:37, john lyles confidentia...@gmail.com wrote:
You are not telling it to look in the right place. You are giving a
location of .message but in fact it is located at div.message, the div
in this case being div id=content. Remove this div and then
Hello,
I want to change the appearance of the default message (edit success).
I have put the following code in the standard layout:
style type=text/css
.message
{
position:absolute;
top:0px;
left:100px;
width:300px;
font-size:14px;
background-color:green;
}
/style
You are not telling it to look in the right place. You are giving a
location of .message but in fact it is located at div.message, the div
in this case being div id=content. Remove this div and then .message
would make sense. It also matters if you put your styles before or
after you include the
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 others
with their CakePHP related questions.
You received
.1045679.n5.nabble.com/this-Session-setFlash-problem-tp...
Sent from the CakePHP mailing list archive at Nabble.com.
Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
with their CakePHP related questions.
You received this message because you are subscribed to the Google
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-flash();
}
but the result will be :
div id=flashMessage class
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 ($session-check('Message.flash')) {
echo $session-flash
controller:
$this-Session-setFlash('blabla');
$this-redirect(array('action'='unsuccessful'));
exit();
and this part in my view:
if ($session-check('Message.flash')) {
echo $session-flash();
}
but the result will be :
div id=flashMessage class=messageblabla/div1
I have that 1 extra
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.html
Sent from the CakePHP
';
}
function add() {
if (!empty($this-data)) {
$this-Post-create();
if ($this-Post-save($this-data)) {
$this-Session-setFlash('The post has been added
successfully.');
$this-reDirect(array('action' = 'index
() {
$this-set('posts', $this-Post-find('all', array('order'
=
array('id DESC';
}
function add() {
if (!empty($this-data)) {
$this-Post-create();
if ($this-Post-save($this-data)) {
$this-Session-setFlash
-find('all', array('order' =
array('id DESC';
}
function add() {
if (!empty($this-data)) {
$this-Post-create();
if ($this-Post-save($this-data)) {
$this-Session-setFlash('The post has been added
successfully
();
if ($this-Post-save($this-data)) {
$this-Session-setFlash('The post has been added
successfully.');
$this-reDirect(array('action' = 'index'));
} else {
$this-Session-setFlash('The post has not been
| Class Outfit
jeremybu...@classoutfit.com wrote:
Make sure you have declared both the Session Component and the Session
Helper in your app_controller. setFlash only places the message into the
session. To show it, use echo $this-Session-flash() in a view, element or
layout.
Jeremy
, Jeremy Burns | Class Outfit
jeremybu...@classoutfit.com wrote:
Make sure you have declared both the Session Component and the Session
Helper in your app_controller. setFlash only places the message into the
session. To show it, use echo $this-Session-flash() in a view, element or
layout
', array('order' =
array('id DESC';
}
function add() {
if (!empty($this-data)) {
$this-Post-create();
if ($this-Post-save($this-data)) {
$this-Session-setFlash('The post has been added
successfully
Hello,
I am very very very new on CakePHP.
I tried to do a blog using the CakePHP. I did it :).
but I found a problem:
when I want to use $this-Session-setFlash(Write whatever);
it doesn't work.
I don't see the sentences that I write inside setFlash. They doesn't
occur when I run the code
Make sure you have declared both the Session Component and the Session Helper
in your app_controller. setFlash only places the message into the session. To
show it, use echo $this-Session-flash() in a view, element or layout.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http
Component and the Session Helper
in your app_controller. setFlash only places the message into the session. To
show it, use echo $this-Session-flash() in a view, element or layout.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.comhttp://www.classoutfit.com
On 18 Dec 2010, at 16:13
. In this
tutorial there is a setFlash message after
adding a new record. Is it possible to hide this message after 3
seconds?
thank ou in advance for your answer.
Regards,
Leo
Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
with their CakePHP related questions
using?...
--
Tilen Majerlehttp://majerle.eu
2010/12/14 lvdb lj.vandenb...@kpnplanet.nl
Hello,
I'am new to Cakephp. I have been doing the blog tutorial. In this
tutorial there is a setFlash message after
adding a new record. Is it possible to hide this message after 3
Hello,
I'am new to Cakephp. I have been doing the blog tutorial. In this
tutorial there is a setFlash message after
adding a new record. Is it possible to hide this message after 3
seconds?
thank ou in advance for your answer.
Regards,
Leo
Check out the new CakePHP Questions site http
which version are u using?...
--
Tilen Majerle
http://majerle.eu
2010/12/14 lvdb lj.vandenb...@kpnplanet.nl
Hello,
I'am new to Cakephp. I have been doing the blog tutorial. In this
tutorial there is a setFlash message after
adding a new record. Is it possible to hide this message after 3
lj.vandenb...@kpnplanet.nl wrote:
Hello,
I'am new to Cakephp. I have been doing the blog tutorial. In this
tutorial there is a setFlash message after
adding a new record. Is it possible to hide this message after 3
seconds?
thank ou in advance for your answer.
Regards,
Leo
Check out
Hi..
in my application. i have one Onchange option i used. using
javascript. in that application i have validation for some fields.
without entering any fields when i clicking save option. i am getting
setFlash error message. without changing any thing i am operating
Onchange operations
any fields when i clicking save option. i am getting
setFlash error message. without changing any thing i am operating
Onchange operations but the error message still showing.
my requirement is after i changing onchange option i have to clear my
SetFlash option.
how to clear setFlash() using
204
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 171
[main] - APP\webroot\index.php, line 83
Fatal error: Call to a member function setFlash() on a non-object in D:
\servidor\xampp\htdocs\cacex\app\controllers\users_controller.php on
line 50
Acontece nas actions, add, edit e delete
você tem que setar o Helper Session no seu controller para que funcione o
metodo setFlash()
var $helpers = array('Session');
2010/9/26 Gilvan Jr. skinblac...@yahoo.com.br
Olá pessoal, aguem saberia me dizer o motivo:
Notice (8): Undefined property: UsersController::$Session [APP
According to the guide, if I do this:
$this-Session-setFlash('A message.', 'default', array('class' =
'warning'), 'reset_password');
...and this in a view:
echo $this-Session-flash('reset_password');
...I ought to get this:
div id=flashMessage class=warningA message./div
...but I am actually
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 23 Sep 2010, at 03:53, Jeremy Burns wrote:
According to the guide, if I do this:
$this-Session-setFlash('A message.', 'default', array('class' =
'warning'), 'reset_password');
...and this in a view:
echo
Im trying to create custom designs for setFlash messages. I've seen
sevral tutuorials for this, like
http://tech.rytis.net/2008/8/27/discover-layouts-for-setflash-method-in-cakephp
, but none of them seems to work for me. I've installed cake 1.3 and
it seems like it's looking for a element view
Try this:
controller:
$this-Session-setFlash('Edited successfully', 'custom_flash', array('class'
= 'success'));
views/elements/custom_flash.ctp
div ?php echo isset($class) ? 'class=' . $class . '' : NULL; ?
p
?php echo isset($message) ? $message : NULL; ?
/p
/div
css:
.success
On Wed, August 18, 2010 4:23 pm, Andras Kende wrote:
Try this:
controller:
$this-Session-setFlash('Edited successfully', 'custom_flash',
array('class' = 'success'));
views/elements/custom_flash.ctp
div ?php echo isset($class) ? 'class=' . $class . '' : NULL; ?
p
?php echo
Set your message as a variable instead of concating them inside the
functions parameter list:
Example:
$text = 'Thank you for logging in: ';
$flashmsg = $txt . $user;
$this-Session-setFlash($flashmsg, 'growl',
array('type'='important'));
or
$flashmsg = 'Thank you for logging in: ' . $user
the session)
$this-Auth-user('first_name');
On Jul 28, 5:22 pm, Melody Nelson melodynelso...@gmail.com wrote:
hi (and sorry for my english),
I'm using cake 1.3
I don't find how I can add infos of the logged user in the setFlash
message after the login
I found how to do it in views but I want
= $txtmsg.$user;
$this-Session-setFlash($flashmsg, 'growl',
array('type'='important'));
}
if I debug $_SESSION, I see the infos but the array [Message] is
before the array [Auth], could it be the source of my problem ?
Array
(
[Config] = Array
(
[userAgent
hi (and sorry for my english),
I'm using cake 1.3
I don't find how I can add infos of the logged user in the setFlash
message after the login
I found how to do it in views but I want to do it in the controller to
use it a growl message
function login() {
$txt = bla bla bla
Hello, newbie here. I cannot get setFlash() to display a message on
my view page.
In the controller:
$this-Session-setFlash('Please enter the correct number.',
'register', array('class' = 'error-message'));
In the view page register.ctp:
?php if ($session-check('Message.flash')) { $session
2010, at 05:58, StephenE wrote:
Hello, newbie here. I cannot get setFlash() to display a message on
my view page.
In the controller:
$this-Session-setFlash('Please enter the correct number.',
'register', array('class' = 'error-message'));
In the view page register.ctp:
?php
I am using 1.3. Your suggestion worked. Thanks!
From the perspective of a newbie, the CakePHP 1.3 manual needs better
documentation on the setFlash() method. They need an example of how
to implement it that actually works.
On Jul 16, 10:25 am, Jeremy Burns | Class Outfit
jeremybu
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 lakum7...@gmail.com wrote:
I am getting this error in my default.ctp layout.
Notice (8): Undefined variable: session [APP\views\layouts
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
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.
Notice
Thanks jeremy, it is working now.
On Jul 9, 1:28 pm, Jeremy Burns | Class Outfit
jeremybu...@classoutfit.com 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
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 jeremybu...@me.com wrote:
Seems like overkill to me. Just use $this-Session-setFlash('Here is my
message'); Then do echo $this-Session-flash
with me , is there any other alternative to
setFlash() ?
Greetings.
On May 20, 7:16 pm, Jeremy Burns jeremybu...@me.com wrote:
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
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
code
if ($session-check('Message.flash
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
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-redirect(array('action'='index
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 elements:
Projects Controller
-setFlash functionality that
uses elements:
Projects Controller:
function edit($id = null) {
...
$this-Session-setFlash('The Project has been saved','message');
$this-redirect(array('action'='index'));
...
}
Layout:
div id=content
?php
$session-flash();
echo $content_for_layout
and displaying the flash value? Consider both an
instruction, so if you do something like if($this-Session-flash());
you'll get both the message and a 1 to indicate success. To set the
value, use $this-Session-setFlash();. To display it, use $this-
Session-flash();.
On Jan 7, 5:40 am, Kerr hayl
Thanks for the prompt replies, guys! I am using $this-Session-
setFlash() in my controller after a successful form submission, then
redirecting, where I echo $session-flash(). I removed the echo, and
all is good! I can't believe I hadn't thought of that before, as I
spent an inordinate amount
well, its always a good idea to jump into the section in the cake core
file
before you bang your head to any solid objects in the room :)
On 7 Jan., 14:40, Kerr hayl...@gmail.com wrote:
Thanks for the prompt replies, guys! I am using $this-Session-setFlash()
in my controller after
());
you'll get both the message and a 1 to indicate success. To set the
value, use $this-Session-setFlash();. To display it, use $this-
Session-flash();.
On Jan 7, 5:40 am, Kerr hayl...@gmail.com wrote:
Hi all, I'm experiencing a really weird issue where the
$session-setFlash() method appends
before you bang your head to any solid objects in the room :)
On 7 Jan., 14:40, Kerr hayl...@gmail.com wrote:
Thanks for the prompt replies, guys! I am using $this-Session-setFlash()
in my controller after a successful form submission, then
redirecting, where I echo $session-flash(). I
Hi all, I'm experiencing a really weird issue where the $session-
setFlash() method appends a single 1 character directly after the
generated div tag. I'm using an unmolested copy of CakePHP 1.2.5.
I've looked all through the source in SessionComponent, CakeSession
and SessionHelper and don't see
How are you setting and displaying the flash value? Consider both an
instruction, so if you do something like if($this-Session-flash());
you'll get both the message and a 1 to indicate success. To set the
value, use $this-Session-setFlash();. To display it, use $this-
Session-flash();.
On Jan 7
I use this to make it lots shorter:
$this-Session-setFlash(___('Success Message'), 'flashes/success');
In app/views/layouts/flashes I have
div id=flashMessage class=message success?=$content_for_layout?
/div
P.s. in app/config/boostrap.php I have
function ___($string) {
return
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(__('Error! Please try again.', true
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 make.cake.b...@gmail.com wrote:
I was wondering is there a way to add a class to the session from the
controller?
The setflash as far as i can
: $this-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 make.cake.b...@gmail.com wrote:
I was wondering is there a way to add a class to the session from the
controller
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,
:
// controller
Class ExsController extends AppController{
public function list(){
$this-Session-setFlash('Hello');
$this-redirect('/exs/new',null,true); // or redirect + die()}
public function new(){}
}
// view layout
?php $session-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 function new(){}
}
// view layout
?php
function list(){
$this-Session-setFlash('Hello');
$this-redirect('/exs/new',null,true); // or redirect + die()}
public function new(){}
}
// view layout
?php $session-flash() ?
Doesn't work at all when I'm using Firefox. It works in opera 10, ie8,
safari and chrome.
Session
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:
div id=flashMessage class=message
My view is not cached because changing
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 kenwin...@winanstech.com wrote:
On Aug 19, 9:01 am, zaboo adambartholo...@gmail.com wrote:
Don't echo $this-Session-setFlash()
On Aug 19, 8:27 am, Chander Bhan gotob
Yes.
On Aug 21, 8:53 am, kdubya kenwin...@winanstech.com wrote:
On Aug 19, 9:01 am, zaboo adambartholo...@gmail.com wrote:
Don't echo $this-Session-setFlash()
On Aug 19, 8:27 am, Chander Bhan gotob...@gmail.com wrote:
I always get the digit 1 in the next line of the message sent
On Aug 19, 9:01 am, zaboo adambartholo...@gmail.com wrote:
Don't echo $this-Session-setFlash()
On Aug 19, 8:27 am, Chander Bhan gotob...@gmail.com 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 understand
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, send email
1 - 100 of 231 matches
Mail list logo