[Catalyst] PHP::View and Template::Toolkit

Ash Berlin ash at cpan.org
Tue Jun 20 15:10:52 CEST 2006


Jess Robinson wrote:
> I suspect your problem is that views tend to expect data in one place 
> (i.e. the stash, and a template file), and output it to another 
> ($c->res->body usually), if you want to run through one and then the 
> other, you'll need to retrieve the result of the TT view from 
> $c->res->body, and put it whereever the PHPView is expecting it..
>
> Jess
>
>   
The latest version of View::TT has a render function that will return
the output of the template - use that instead of $c->res->body

Ash





More information about the Catalyst mailing list