All,
After following the 'flashing' turtorial on the wiki (
http://wiki.cakephp.org/tutorials:flashing ) I was able to start using
the flashing method described there. i.e using setFlash with a
particular layout, which then appears as part of the page after a
redirect(). ( The 'alternate CSS flash note' section).
The problem I've found is that I can't use the HTML helper as part of
the layout rendered with Session->setFlash(). It always barfs up the
error:
Fatal error: Call to a member function on a non-object in <server
path>/app/views/layouts/inpageFlash.thtml on line 6
where line 6 is:
echo $html->image('close.png', array('alt'=>'Close', 'border'=>'0',
'vspace'=>'2'));
Now the flashing tutorial even talks about using images as part of the
flash, but unfortunately doesn't give an example! Anyone able to point
me in the right direction?
If I comment that line out, the flashing works fine. A 'pr($this)' in
the layout revealed that html is part of the helpers array of the view
object, it just doesn't seem to be getting loaded?
thanks
Steve
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---