[Catalyst] flash

Andreas Marienborg omega at palle.net
Tue Jan 2 05:32:02 GMT 2007


Or you can use the flash_to_stash config option of  
Catalyst::Plugin::Session:

http://cpansearch.perl.org/~nuffin/Catalyst-Plugin-Session-0.13/lib/ 
Catalyst/Plugin/Session.pm#CONFIGURATION

This will make your flash'ed stuff magicaly appear in your stash on  
the next request.


andreas


On 31. des. 2006, at 18.19, Chisel Wright wrote:

> On Sun, Dec 31, 2006 at 07:05:30PM +0200, Octavian Rasnita wrote:
>> But can you tell me why $c->flash is not working? Should I add a  
>> certain
>> plug in for making it work or need making some other settings?
>
> Poking around, there's a small example in
> Catalyst::Manual::Tutorial::Authentication:
>
>   $c->flash->{status_msg} = "Book deleted";
>
> and in the template:
>
>   [% Catalyst.flash.status_msg %]
>
>
> I *think* you can get away without "Catalyst." (or use "c."  
> instead) but
> you're almost definitely missing the leading "flash." in your TT  
> markup.
>
> -- 
> Chisel Wright
> e: chisel at herlpacker.co.uk
> w: http://www.herlpacker.co.uk/
>
>   This is not an automated signature.
>   I type this in to the bottom of every message.
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/ 
> catalyst at lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/




More information about the Catalyst mailing list