On Wed, Aug 19, 2009 at 9:27 AM, Chander Bhangotob...@gmail.com 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. ANDRADE
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
--~--~-~--~~~---~--~~
You received this message
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. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105
http://mfandrade.wordpress.com
thanks a lot for helping.
On Aug 19, 6:01 pm, 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
You can follow below code:
$this-Sesssion-setFlash(__('Bill was sent by e-mail successfully',
true));
$this-redirect(array('controller' =
'controllername','action'='actionname'));
On Thu, Aug 6, 2009 at 6:32 AM, Eddy Josafat eddyjosa...@gmail.com wrote:
Thanks for advice. It was a typo
wrote:
I have same problem and I don't use any translation.
$this-Session-setFlash('Contraseña modificada', 'notificación');
$this-redirect(array('controller' = 'gestion', 'action' =
'display', 'inicio'));
I get a blank page and no redirect with previous code. If I comment
the line
Error before redirect causes blank page. Turn debug on and look at
this error.
On Jul 29, 10:29 pm, Eddy Josafat eddyjosa...@gmail.com wrote:
I have same problem and I don't use any translation.
$this-Session-setFlash('Contraseña modificada', 'notificación');
$this-redirect(array('controller
I have same problem and I don't use any translation.
$this-Session-setFlash('Contraseña modificada', 'notificación');
$this-redirect(array('controller' = 'gestion', 'action' =
'display', 'inicio'));
I get a blank page and no redirect with previous code. If I comment
the line that sets the flash
if your using a multi-lingual applications with translations do not
remove.
__('Bill was sent by e-mail successfully',
true)
$this-Session-setFlash(__('Bill was sent by e-mail successfully',
true));
setting __('this field', true) enables you to generate a po(t) file to
translate that string
-mail successfully',
true)
$this-Session-setFlash(__('Bill was sent by e-mail successfully',
true));
setting __('this field', true) enables you to generate a po(t) file to
translate that string into another language.
If your application has no interest in translations you do not need to
use
Hello!
I have weird (I think) problem. In one of my actions I have the code:
$this-Sesssion-setFlash(__('Bill was sent by e-mail successfully',
true));
$this-redirect(array('controller' = 'somecotroller');
and nothing happend. Redirection dosen't work, there's only blank
screen.
When I remove
use the foll:
manner
$this-Session-setFlash('User profile has been updated.');
$this-redirect('/users/home');//controller name/action
name
On Tue, Jul 14, 2009 at 3:19 PM, Raph ra...@epoczta.pl wrote:
Hello!
I have weird (I think) problem. In one of my actions I
Still the same problem. :/ If I remove setFlash then is ok.
On 14 Lip, 11:52, jeff jeffery2k2...@gmail.com wrote:
use the foll:
manner
$this-Session-setFlash('User profile has been updated.');
$this-redirect('/users/home'); // controller name/action
name
On Tue
explain what problem exactly r u facing and also the code...
On Tue, Jul 14, 2009 at 3:41 PM, Raph ra...@epoczta.pl wrote:
Still the same problem. :/ If I remove setFlash then is ok.
On 14 Lip, 11:52, jeff jeffery2k2...@gmail.com wrote:
use the foll:
manner
$this-Session
problem. :/ If I remove setFlash then is ok.
On 14 Lip, 11:52, jeff jeffery2k2...@gmail.com wrote:
use the foll:
manner
$this-Session-setFlash('User profile has been updated.');
$this-redirect('/users/home');//controller name/action
name
On Tue, Jul
http://pastebin.com/m6b2da595
This action generates pdf with bill and sends it to client. Then It
should redirect to another page. Everything works fine except this
redirect.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
...
On Tue, Jul 14, 2009 at 3:41 PM, Raph ra...@epoczta.pl wrote:
Still the same problem. :/ If I remove setFlash then is ok.
On 14 Lip, 11:52, jeff jeffery2k2...@gmail.com wrote:
use the foll:
manner
$this-Session-setFlash('User profile has been updated.');
$this-redirect
, jeff jeffery2k2...@gmail.com wrote:
explain what problem exactly r u facing and also the code...
On Tue, Jul 14, 2009 at 3:41 PM, Raph ra...@epoczta.pl wrote:
Still the same problem. :/ If I remove setFlash then is ok.
On 14 Lip, 11:52, jeff jeffery2k2...@gmail.com wrote:
use
14, 2009 at 3:41 PM, Raph ra...@epoczta.pl wrote:
Still the same problem. :/ If I remove setFlash then is ok.
On 14 Lip, 11:52, jeff jeffery2k2...@gmail.com wrote:
use the foll:
manner
$this-Session-setFlash('User profile has been updated.');
$this-redirect('/users/home
In Line 49 your have this code: $this-Sesssion-setFlash('Bill was
sent by e-mail successfully');
The problem is that you have written Session with wrong. It only 2 S
in the middle.
I know sometimes the easiest error can't be found :-)
On Jul 14, 1:40 pm, Raph ra...@epoczta.pl wrote:
There's
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
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 vermas...@gmail.com wrote:
Looks like that this is also not working within nocache, like the
FormHelper...
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 received this
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 vermas
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(array('controller'='users','action
Is there anyone run cake app on IE6? It seems the setFlash can not work on
IE6. It was fine on firefox when we set a flash after redirect to a page.
--
Thanks
Joshua
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
__()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 goo...@toby-g.net wrote:
Morning all,
I have a problem
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 works fine.
I can do
, Toby goo...@toby-g.net 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 flash message. If I remove the __() function
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/basics.php#function-__
Regards
Guenther
Hello All,
I'm having an issue pretty much exactly like the issue posted here:
http://www.nabble.com/Sessions,-redirects-and-setFlash-td14792737.html
Basically I set a session variable when an admin logs in with some info
$this-Session-write('AdminInfo', $admin);
And then on every page
autoLayout to true when i
call redirect from an ajax request ?
thanks
On Oct 14, 3:59 pm, Julián Lastiri [EMAIL PROTECTED] wrote:
When i useredirectfrom anajaxrequest theajax.ctp is not rendered.
I try calling setFlash withgrowl layout but doesn't work.
I have a content div in my webpage
PROTECTED] wrote:
When i useredirectfrom anajaxrequest theajax.ctp is not rendered.
I try calling setFlash withgrowl layout but doesn't work.
I have a content div in my webpage. When i submit the form i save the
data, then set a Flash message andredirectto the index.
The index
when i
callredirectfrom an ajax request ?
thanks
On Oct 14, 3:59 pm, Julián Lastiri [EMAIL PROTECTED] wrote:
When i useredirectfrom anajaxrequest theajax.ctp is not rendered.
I try calling setFlash with growl layoutbut doesn't work.
I have a content div in my webpage. When i submit
Lastiri [EMAIL PROTECTED] wrote:
When i useredirectfrom anajaxrequest theajax.ctp is not rendered.
I try calling setFlash withgrowl layout but doesn't work.
I have a content div in my webpage. When i submit the form i save the
data, then set a Flash message andredirectto the index
hi,
I want to change setFlash message English to franch how can i change
language of flash message?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to cake-php
2008/11/3 [EMAIL PROTECTED] [EMAIL PROTECTED]
hi,
I want to change setFlash message English to franch how can i change
language of flash message?
- You can use syntax like $this-Session-setFlash(__('This is error
message', true)); in controller's action to use multi-lingual flash message
When i use redirect from an ajax request the ajax.ctp is not rendered.
I try calling setFlash with growl layout but doesn't work.
I have a content div in my webpage. When i submit the form i save the
data, then set a Flash message and redirect to the index.
The index is loaded in the content
cakephp to set autoLayout to true when i
call redirect from an ajax request ?
thanks
On Oct 14, 3:59 pm, Julián Lastiri [EMAIL PROTECTED] wrote:
When i useredirectfrom anajaxrequest theajax.ctp is not rendered.
I try calling setFlash with growl layout but doesn't work.
I have a content div
I'm using cakephp 1.2RC3
I want to show messages with setFlash method but when i use redirect
the ajax.ctp layout is not rendered.
I'm using this code to show messages with jGrowl inside my ajax.ctp
layout
?php if ($session-check('Message.flash')): ?
script
jQuery(document).ready(function
Lastiri
Sent: Monday, October 13, 2008 2:11 PM
To: CakePHP
Subject: Ajax Redirect and setFlash Messages
I'm using cakephp 1.2RC3
I want to show messages with setFlash method but when i use redirect
the ajax.ctp layout is not rendered.
I'm using this code to show messages with jGrowl inside my ajax.ctp
-Original Message-
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Julián Lastiri
Sent: Monday, October 13, 2008 2:11 PM
To: CakePHP
Subject: Ajax Redirect and setFlash Messages
I'm using cakephp 1.2RC3
I want to show messages with setFlash method but when i use
-save($this-data, false)) {
$this-Session-setFlash('Data has been
changed');
$this-redirect(array('action'='my_topics',
$id), null, true);
}
}
}
}
But here somehow it won't show
Hi All,
I'm new to CakePHP and I used the cake bake tool to generate my model
classes, controllers and views for a fairly complex data model. One of my
model classes is returning the message below and appears to be sending
'setFlash' to the database as a query. Can someone point me to where
On Sep 3, 10:27 am, Doychi [EMAIL PROTECTED] wrote:
Hi All,
I'm new to CakePHP and I used the cake bake tool to generate my model
classes, controllers and views for a fairly complex data model. One of my
model classes is returning the message below and appears to be sending
'setFlash
Solved. It's because of using requireAction() in my layouts and
helpers.
Ondrej
On Jul 5, 11:35 pm, angel333 [EMAIL PROTECTED] wrote:
Hello,
I have a problem with SessionComponent::setFlash(). When I save
something in flash, it should be shown on next page and it should
expire when user go
Did anyone experience the same thing?
If saved, a post will redirect to the index()
but before that, i use the $this-Session-setFlash('Saved')
well, in the Firefox and Opera, this message always gets displayed (as
intended)
but in the IE(7) the message only shows up, if the data of the edited
now it works again - probably one of this cache-problems
woud have been to weird
On 13 Jul., 04:26, Mark (Germany) [EMAIL PROTECTED]
wrote:
Did anyone experience the same thing?
If saved, a post will redirect to the index()
but before that, i use the $this-Session-setFlash('Saved
Hello,
Which log do you mean? I have only errors.log and debug.log, but there
are no messages about this.
On Jul 7, 5:05 am, francky06l [EMAIL PROTECTED] wrote:
Seems you are always setting the flash message somehow .. Try to trace
in log before you use $this-Session-setFlash, maybe it's done
view caching?
What browser do you use?
etc!
On Jul 6, 7:35 am, angel333 [EMAIL PROTECTED] wrote:
Hello,
I have a problem with SessionComponent::setFlash(). When I save
something in flash, it should be shown on next page and it should
expire when user go to another page. But it doesn't
Seems you are always setting the flash message somehow .. Try to trace
in log before you use $this-Session-setFlash, maybe it's done when
you think it's not...
On Jul 7, 1:44 pm, angel333 [EMAIL PROTECTED] wrote:
Thank you for your reply.
No, I don't use view caching.
I am on debug 1
Hello,
I have a problem with SessionComponent::setFlash(). When I save
something in flash, it should be shown on next page and it should
expire when user go to another page. But it doesn't expire
immediatelly, but after a long while (probably session expiration).
When I turn cookies off
This sounds like caching to me.
What debug level are you on?
Do you use view caching?
What browser do you use?
etc!
On Jul 6, 7:35 am, angel333 [EMAIL PROTECTED] wrote:
Hello,
I have a problem with SessionComponent::setFlash(). When I save
something in flash, it should be shown on next page
$session-params['extra']
On Jul 3, 7:29 am, Marc George [EMAIL PROTECTED] wrote:
Hi
I'm a new Cake user, cutting my teeth on 1.2. Forgive me if I'm being
stupid here but I'm finding the documentation a little unclear on the
use of SessionComponent::setFlash() in its extended form. i.e
Hi
I'm a new Cake user, cutting my teeth on 1.2. Forgive me if I'm being
stupid here but I'm finding the documentation a little unclear on the
use of SessionComponent::setFlash() in its extended form. i.e:
SessionComponent::setFlash ($message, $layout = 'default', $params =
array(),$key
I have an interesting dilemma that occurs in Firefox with setFlash.
I'm using the following code:
if (empty($relatedRider['Rider']['id']))
{
$this-Session-setFlash(That rider doesn't exist.,
'default', '', 'error');
$this-redirect('/dashboard
if(search_all_cake_resources === null) {
echo 'exact version of the framework used';
echo 'php version';
$url = $this-pasteRelevantCode('http://bin.cakephp.org');
echo $url;
}
--~--~-~--~~~---~--~~
You received this message because you are
Version 1.2.0.6311 beta
PHP5
http://bin.cakephp.org/view/1575603249
On Apr 29, 2:15 pm, Sliv [EMAIL PROTECTED] wrote:
if(search_all_cake_resources === null) {
echo 'exact version of the framework used';
echo 'php version';
$url =
6311 - Try without the exit call, as exit happens by default. On a
side note, you should try out mariano's bindable behavior (newer)
instead of expects (older). Another thing: does it happen on all
redirects or just this one (i.e. try generating a basic page with bake
and test)
I removed the exit call and the expects function and made a test page.
What's weird is that if the id is truly empty, the redirect works.
But if the id exists the flash gets set, but the redirect does not get
called.
This happens in all cases where want to make sure the id passed to the
page
try http://bin.cakephp.org/saved/31533
--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to
I wonder if the flash you're seeing is from the session
try http://bin.cakephp.org/saved/31534
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
Dang, I tried that and I still get the same thing. I did find some
cases where that weird flash occurrence doesn't happen, but I haven't
been able to diagnose why.
On Apr 29, 3:09 pm, Sliv [EMAIL PROTECTED] wrote:
I wonder if the flash you're seeing is from the session
If I delete the flash session at the end of the action then the
message doesn't show. But that seems backwards.
On Apr 29, 3:15 pm, Teevio [EMAIL PROTECTED] wrote:
Dang, I tried that and I still get the same thing. I did find some
cases where that weird flash occurrence doesn't happen, but I
Try updating cake.
On Tue, Apr 29, 2008 at 4:25 PM, Teevio [EMAIL PROTECTED] wrote:
If I delete the flash session at the end of the action then the
message doesn't show. But that seems backwards.
On Apr 29, 3:15 pm, Teevio [EMAIL PROTECTED] wrote:
Dang, I tried that and I still get
So .. according to the API, you can send params with setFlash() to be
used in the view. That is fine and dandy .. however, is it possible to
use those params to set the class of the div? The only parameter
flash() allows is the key.
What I am trying to do is pass a parameter called class so I
Create 2 flash layouts, flash_ok.ctp flash_not_ok.ctp like so(ish):
div id=flash_ok
?= $content_for_layout ?
/div
div id=flash_not_ok
?= $content_for_layout ?
/div
Then style them in your CSS. Pass the id as the 2nd param to setFlash().
On Wed, Mar 26, 2008 at 11:57 PM, John R
Hello.
I'm using 1.2 beta and tried some baked code:
In my controller:
function view($id = null) {
$this-Session-setFlash(__(Invalid Place., true));
$this-redirect(array(action = index));
}
debug-Level is set to 2:
Configure::write('debug', 2);
If i request this action in the browser
Hi Tomka,
Do you have something like
$session-flash();
in your layout/view?
Hope that helps,
--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post
I can't remove number 1. That is a problem.
On Feb 16, 8:46 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] wrote:
Any
Thanks.
On Feb 16, 5:04 pm, Samuel DeVore [EMAIL PROTECTED] wrote:
probably because you wrapped it in an echo or a short tag, it auto echos
don't
?php echo $this-Session-setFlash('foo'); ?
don't
?= $this-Session-setFlash('foo'); =?
do
?php $this-Session-setFlash('foo'); ?
it returns
:
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] wrote:
Any idea why my $this-Session-setFlash('foo'); outputs Foo 1 in my
view? :)
CODE:
div id
probably because you wrapped it in an echo or a short tag, it auto echos
don't
?php echo $this-Session-setFlash('foo'); ?
don't
?= $this-Session-setFlash('foo'); =?
do
?php $this-Session-setFlash('foo'); ?
it returns 'true' or 1
Sam D
On Feb 16, 2008 5:31 AM, herc [EMAIL PROTECTED] wrote
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:
div id=flashMessage class=messagefoo/div1
--
--
(the old fart) the advice is free, the lack of crankiness will cost you
pessoal tem com adicionar uma class no setFlash, para que mude a class
do view.
ex:
esse é o atual
div id=flashMessage class=messageO registro não pode ser salvo.
Por favor tente novamente./div
para mudar para esse
div id=flashMessage class=Aqui vai mudar, conforme eu colocar no
setFlashO
Desculpe-me, mas, alterando o CSS nao resolve?
Att.
Siscoj WEB
On 2/13/08, DrWinux [EMAIL PROTECTED] wrote:
pessoal tem com adicionar uma class no setFlash, para que mude a class
do view.
ex:
esse é o atual
div id=flashMessage class=messageO registro não pode ser salvo.
Por favor tente
Não é possível alterar isso no setFlash diretamente, mas o Cake te dá
algumas opções:
- setFlash('texto', 'layout_pra_isso', 'params'); // Isso fará com que
ele jogue sua mensagem dentro de um layout (aqueles que ficam lá na
pasta views/layout. O argumento que passei como 'params' pode ser
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
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 the
http://au2.php.net/session_write_close
The discussion here seems to indicate a PHP problem of some kind on
some systems.
or
Some missing stuff in cake to garbage collect for all situations?
or
Well my problem seems to point elsewhere.. __start in setFlash?
I encounter the problem with 1.2
debug(compact('message', 'layout', 'params'));
Array
(
[message] = foobar
[layout] = default
[params] = Array
(
)
)
That's the debug from the compact that goes into the write inside
setFlash.
-Ben
--~--~-~--~~~---~--~~
You received
Ok I've been through it from top to bottom on the writing side of
things, sessions, flash code etc.
Seems that there is something cleaning up the message value before it
gets to the session helper $session-flash();
Before the view (debug($_SESSION) at the top and no message). the
message is
Ok got it on my end.. Hopefully this can help some others.
Problem is in the example code for DAuth user login controller.
$this-DAuth-newSalt();
$this-Session-setFlash($error);
This resets the message all the time with a blank var ($error is blank
unless there has been one)
Mod
I mean wouldn't
On Jan 15, 11:05 am, lordG [EMAIL PROTECTED] wrote:
Ok, yeah, the print_r would work as the session has not been started
yet.
However, there does appear to be a difference between when sessions
start for normal requests and ajax requests.
Ok, yeah, the print_r would work as the session has not been started
yet.
However, there does appear to be a difference between when sessions
start for normal requests and ajax requests.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Ok, traced it down to the bare variable and these lines in the session
component:
00295 function __start(){
00296 if ($this-__started === false) {
00297 if ($this-__bare === 0) {
00298 if (!$this-id() parent::start()) {
00299
Does anyone have any further suggestions on this?
I cake 1.1 my ajax calls would work 100% with a session security set
to medium. With Cake 1.2 however they are no longer working.
It seems to have something to do with the $_SESSION array being
undefined when the response is received.
Shouldn't
ok... does anyone know why the following the the router are being
deprecated?
00503 /**
00504 * Deprecated
00505 *
00506 */
00507 $_this-connect('/bare/:controller/:action/*',
array('bare' = '1'));
00508
Hey Chris, yeah I had a similar problem before with 1.1 and did then
and now downscaled the security to medium.
What is the difference between the 3 levels though, other than the
timeout scale time?
Chris Hartjes wrote:
On Jan 13, 2008 6:24 PM, lordG [EMAIL PROTECTED] wrote:
Hi guys,
i'm having the same problem. (except minus the flash)
ugh...
On Jan 13, 2008 5:24 PM, lordG [EMAIL PROTECTED] wrote:
Hi guys,
I'm experiencing a problem with the redirects when I destroy the
session, set a flash message and then redirect.
When it gets to the redirect page, the flash no
On Jan 13, 2008 6:24 PM, lordG [EMAIL PROTECTED] wrote:
Hi guys,
I'm experiencing a problem with the redirects when I destroy the
session, set a flash message and then redirect.
When it gets to the redirect page, the flash no longer exists and the
session is clean of any custom session
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
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
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 routine?
--~--~-~--~~~---~--~~
You received
..
$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 message will be shown on the
login()
Louie
On Dec 10, 2007 8:51 AM, Louie Miranda
, 10:44 pm, Louie Miranda [EMAIL PROTECTED] wrote:
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
Guys,
this is fairly simple setFlash. But, i wonder why it is now showing up?
A few of my simple auth codes..
?php
class UsersController extends AppController
{
var $name = Users;
var $helpers = array('Html', 'Form', 'Session');
function login()
{
if(empty
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 message will be shown on the
login()
Louie
On Dec
Preciso exibir as mensagens do tipo Dados salvos com sucesso, não
foi possível realizar o processo e afins.
O problema é que mesmo gravando as mensagens com o setFlash elas não
aparecem na página, só aparecem as mensagens das páginas geradas pelo
bake as minhas não aparecem nem a pau.
Para que
É assim que estou fazendo atualmente, mas, como já tinha dito os
controllers e views criados pelo bake não tem este código e exibem a
mensagem normalmente... queria saber como é feito...
Falopa!
--~--~-~--~~~---~--~~
Recebeu esta mensagem porque está inscrito em
101 - 200 of 231 matches
Mail list logo