Re: related to Session-setFlash

2009-08-19 Thread Marcelo Andrade
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

Re: related to Session-setFlash

2009-08-19 Thread zaboo
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

Re: related to Session-setFlash

2009-08-19 Thread cbhan
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

Re: related to Session-setFlash

2009-08-19 Thread cbhan
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

Re: setFlash and redirect problem

2009-08-08 Thread arif hossen
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

Re: setFlash and redirect problem

2009-08-06 Thread Eddy Josafat
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

Re: setFlash and redirect problem

2009-07-30 Thread Dr. Loboto
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

Re: setFlash and redirect problem

2009-07-29 Thread Eddy Josafat
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

Re: setFlash and redirect problem

2009-07-15 Thread seancul...@gmail.com
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

Re: setFlash and redirect problem

2009-07-15 Thread Kau-Boy
-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

setFlash and redirect problem

2009-07-14 Thread Raph
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

Re: setFlash and redirect problem

2009-07-14 Thread jeff
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

Re: setFlash and redirect problem

2009-07-14 Thread Raph
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

Re: setFlash and redirect problem

2009-07-14 Thread jeff
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

Re: setFlash and redirect problem

2009-07-14 Thread M Naveed Akram
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

Re: setFlash and redirect problem

2009-07-14 Thread Raph
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

Re: setFlash and redirect problem

2009-07-14 Thread Raph
... 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

Re: setFlash and redirect problem

2009-07-14 Thread Raph
, 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

Re: setFlash and redirect problem

2009-07-14 Thread Kau-Boy
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

Re: setFlash and redirect problem

2009-07-14 Thread Kau-Boy
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

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

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 vermas...@gmail.com 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
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

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 vermas

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(array('controller'='users','action

setFlash can not work on IE6?

2009-05-07 Thread joshua
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

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 goo...@toby-g.net wrote: Morning all, I have a problem

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 works fine. I can do

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

2009-04-07 Thread Toby
, 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

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/basics.php#function-__ Regards Guenther

Session - setFlash - redirect - GONE!

2009-01-15 Thread deedod
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

Re: Ajax Redirect and setFlash Messages

2008-11-05 Thread jasonL
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

Re: Ajax Redirect and setFlash Messages

2008-11-05 Thread Adam Royle
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

Re: Ajax Redirect and setFlash Messages

2008-11-04 Thread jasonL
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

Re: Ajax Redirect and setFlash Messages

2008-11-04 Thread Adam Royle
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

change language of setFlash()

2008-11-02 Thread [EMAIL PROTECTED]
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

Re: change language of setFlash()

2008-11-02 Thread Amit Badkas
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

Re: Ajax Redirect and setFlash Messages

2008-10-14 Thread Julián Lastiri
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

Re: Ajax Redirect and setFlash Messages

2008-10-14 Thread Julián Lastiri
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

Ajax Redirect and setFlash Messages

2008-10-13 Thread Julián Lastiri
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

RE: Ajax Redirect and setFlash Messages

2008-10-13 Thread Andras Kende
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

Re: Ajax Redirect and setFlash Messages

2008-10-13 Thread Julián Lastiri
-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

another setFlash issue...

2008-09-19 Thread fragoon
-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

Bad SQL: setFlash

2008-09-03 Thread Doychi
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

Re: Bad SQL: setFlash

2008-09-03 Thread AD7six
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

Re: Problem with setFlash

2008-07-21 Thread angel333
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

setFlash - IEproblem?

2008-07-12 Thread Mark (Germany)
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

Re: setFlash - IEproblem?

2008-07-12 Thread Mark (Germany)
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

Re: Problem with setFlash

2008-07-09 Thread angel333
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

Re: Problem with setFlash

2008-07-07 Thread angel333
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

Re: Problem with setFlash

2008-07-07 Thread francky06l
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

Problem with setFlash

2008-07-06 Thread angel333
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

Re: Problem with setFlash

2008-07-06 Thread the_woodsman
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

Re: setFlash extended parameters

2008-07-04 Thread Smelly_Eddie
$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

setFlash extended parameters

2008-07-03 Thread Marc George
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

setFlash problems in Firefox

2008-04-29 Thread Teevio
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

Re: setFlash problems in Firefox

2008-04-29 Thread Sliv
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

Re: setFlash problems in Firefox

2008-04-29 Thread Teevio
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 =

Re: setFlash problems in Firefox

2008-04-29 Thread Sliv
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)

Re: setFlash problems in Firefox

2008-04-29 Thread Teevio
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

Re: setFlash problems in Firefox

2008-04-29 Thread Sliv
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

Re: setFlash problems in Firefox

2008-04-29 Thread Sliv
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

Re: setFlash problems in Firefox

2008-04-29 Thread Teevio
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

Re: setFlash problems in Firefox

2008-04-29 Thread Teevio
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

Re: setFlash problems in Firefox

2008-04-29 Thread Dardo Sordi Bogado
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

Customize setFlash() ?

2008-03-26 Thread John R
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

Re: Customize setFlash() ?

2008-03-26 Thread b logica
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

setflash does not work

2008-02-24 Thread Tomka
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

Re: setflash does not work

2008-02-24 Thread Daniel Hofstetter
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

Re: Session-setFlash()

2008-02-17 Thread herc
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

Re: setFlash('foo')

2008-02-17 Thread herc
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

Re: Session-setFlash()

2008-02-17 Thread villas
: 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

Re: setFlash('foo')

2008-02-16 Thread Samuel DeVore
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

Re: Session-setFlash()

2008-02-16 Thread Samuel DeVore
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

duvida com setFlash

2008-02-13 Thread DrWinux
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

Re: duvida com setFlash

2008-02-13 Thread Desenvolvimento SiscoJ
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

Re: duvida com setFlash

2008-02-13 Thread Juan Basso
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

Re: Can I use Session::setFlash from model?

2008-01-22 Thread powtac
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

Re: Can I use Session::setFlash from model?

2008-01-22 Thread AD7six
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

Re: Sessions, redirects and setFlash

2008-01-21 Thread Mr-Yellow
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

Re: Sessions, redirects and setFlash

2008-01-21 Thread Mr-Yellow
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

Re: Sessions, redirects and setFlash

2008-01-21 Thread Mr-Yellow
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

Re: Sessions, redirects and setFlash

2008-01-21 Thread Mr-Yellow
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

Re: Sessions, redirects and setFlash

2008-01-15 Thread lordG
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.

Re: Sessions, redirects and setFlash

2008-01-15 Thread lordG
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

Re: Sessions, redirects and setFlash

2008-01-15 Thread lordG
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

Re: Sessions, redirects and setFlash

2008-01-15 Thread lordG
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

Re: Sessions, redirects and setFlash

2008-01-15 Thread lordG
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

Re: Sessions, redirects and setFlash

2008-01-14 Thread lordG
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,

Re: Sessions, redirects and setFlash

2008-01-13 Thread Gráinne O'Neill
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

Re: Sessions, redirects and setFlash

2008-01-13 Thread Chris Hartjes
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

Re: Can I use Session::setFlash from model?

2008-01-06 Thread AD7six
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

Can I use Session::setFlash from model?

2008-01-05 Thread MikeK
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

Re: Can I use Session::setFlash from model?

2008-01-05 Thread Robby Anderson
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

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

2007-12-10 Thread daphonz
.. $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

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

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

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

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

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 message will be shown on the login() Louie On Dec

Exibir mensagem do resultado da ação gravado com setFlash

2007-11-26 Thread hostdesigner
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

Re: Exibir mensagem do resultado da ação gravado com setFlash

2007-11-26 Thread hostdesigner
É 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

<    1   2   3   >