Monday, December 6, 2010

Re: Controller->flash in beforeFilter...help!

Hi cricket...thanks for replying. I actually checked that first and I
am indeed calling the parent method in all my overrides.

I did actually find a solution, though not the ideal one. So, the
action method that was giving me problems is called "submenu" ...but I
was actually trying to reuse an existing view, so at the end of the
method I was calling render('main') because both the main action and
the submenu action can use the same view code. I found that if I
created a submenu.ctp file and copied the main.ctp code into it and
let cake render submenu as the default view (i.e., delete the manual
call to the render function), everything works like expected. I
needed a quick fix, so I'll leave this as is for now, but I'd like to
understand why that was needed. It seems silly to have to have two
view files that are identical.

Was there something else I was supposed to add in addition to simply
calling render with a non-default view name?


Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate