On Tue, Jun 20, 2006 at 07:26:59 -0400, [EMAIL PROTECTED] wrote: > > I have a Template toolkit working and and a PHP view working. I would > like to be able to use the template toolkit then pass to PHP or vise > versa. It was suggested that this could be done on irc, I have made > some attempts at this with no luck. I simply tried to forward on to > the two views but of course as soon as I forward to one thats it. I > tried to use the render and/or process instead of a forward but > without any luck.
What are you trying to achieve? I don't know what your problem is,
or what solution you are trying to solve it with, so it's very hard
to answer.
Several possible solutions you are trying:
process with one view, then reprocess with another view treating
the result of the previous view as a template
process with one view, then process with another view treating
the result of the previous view as a variable
process with one view, and if that fails try a different one
...
Please try to describe this more accurately.
> $c->stash->{template}="template.with.php.tt"
> $c->forward("TToolkit::View");
> $c->forward("PHP::View");
It looks like you have the package names wrong. What is the full
name of e.g. PHP::View? YourApp::View::PHP::View? or
YourApp::View::PHP?
General style note:
$c->forward( $c->view("TToolkit") ); # forward to component object
> If anyone has a better understanding of what catalyst does in the view
> layer and might know how to solve this would be appreciated.
Views are specialized controllers.
--
Yuval Kogman <[EMAIL PROTECTED]>
http://nothingmuch.woobling.org 0xEBD27418
pgp97MXMDDY5r.pgp
Description: PGP signature
_______________________________________________ List: [email protected] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
