Re: $this-flash() Problem

2006-08-26 Thread Jason Lee
OK. Mystery solved. The root cause was a hole in my understanding of the API, and a stupid typo. In AppController, I overrode render() to set some variables in the view for each request. After digging through the API source, I was reminded of beforeRender() which does what I was trying to do

Re: Re: $this-flash() Problem

2006-08-26 Thread Samuel DeVore
Which brings to mind one of my favorite acronyms PEBKAC http://en.wikipedia.org/wiki/PEBKAC ;) glad you found your problem On 8/26/06, Jason Lee [EMAIL PROTECTED] wrote: OK. Mystery solved. The root cause was a hole in my understanding of the API, and a stupid typo. In AppController, I

Re: Re: $this-flash() Problem

2006-08-26 Thread Jason Lee
On 8/26/06, Samuel DeVore [EMAIL PROTECTED] wrote: Which brings to mind one of my favorite acronyms PEBKAC http://en.wikipedia.org/wiki/PEBKAC ;) glad you found your problem Exactly. Or the ID-10-T error. ;) I feel pretty dumb now, but I finally got it solved, so I can move on. :) --

Re: $this-flash() Problem

2006-08-25 Thread AD7six
Your code is not visible any more. Are you sure that line of code is being executed ;), try putting die before the flash statement, if you still get your view rendered, the bit of code with the flash in it isn´t being called. HTH, AD7six --~--~-~--~~~---~--~~

Re: $this-flash() Problem

2006-08-25 Thread Jason Lee
On 8/25/06, AD7six [EMAIL PROTECTED] wrote: Are you sure that line of code is being executed ;), try putting die before the flash statement, if you still get your view rendered, the bit of code with the flash in it isn´t being called. The odd thing is that I put something like die('hello'),

Re: $this-flash() Problem

2006-08-25 Thread AD7six
Have you created your own views/layout/flash.thtml? If so, what´s in it ;) Cheers, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: $this-flash() Problem

2006-08-25 Thread Jason Lee
On 8/25/06, AD7six [EMAIL PROTECTED] wrote: Have you created your own views/layout/flash.thtml? I did, but, just for testing, I've removed it with no effect. The file, though, was basically the same as default.thtml, but with the requisite php changes to display the flash message and the link.

Re: $this-flash() Problem

2006-08-24 Thread Jason Lee
On 8/24/06, Mikee Freedom [EMAIL PROTECTED] wrote: if you're using anything above debug = 1 in the core config then the flash doesn't automatically redirect. caught me out for a while as well. Right, but it's not even displaying the message. Say, for example, I'm on /users/add. I fill out

Re: Re: $this-flash() Problem

2006-08-24 Thread Jason Lee
On 8/24/06, Samuel DeVore [EMAIL PROTECTED] wrote: Can you post the code in your controller? Here's the relevant snippet: http://cakephp.org/pastes/show/2ec3cd97a310e0ff524105a02a3339f2 -- jason lee http://www.steeplesoft.com http://blogs.steeplesoft.com http://littlezoper.livejournal.com