why not just $c-forward?On 7/13/06, Rodney Broom [EMAIL PROTECTED] wrote:
From: Guillermo Roditi [EMAIL PROTECTED] whatabout $c-controller()That appears to work, thanks. The remaining cludge I've got in my code is carrying around the context. So far, I only need this for access to the stash. For
Quite often I create non action methods in my controllers to centralize
functions that don't need to be an action. Stuff like building up a
HTML::Widget form, etc. Usually in the controller I call it with
$self-local_method(...) and so forth.
Now in the TT view you have the stash and the
From: John Napiorkowski [EMAIL PROTECTED]
Usually I just do something like $c-stash-{self} = \$self;
I've been doing the same thing in some proof of concept code, expecting to bump
into a better (more proper) way to handle it. I have a sneaking suspicion that
we aren't supposed to talk
John Napiorkowski said:
Now in the TT view you have the stash and the context but I find no easy
way to access the $self-xxx stuff. I know it can be considered bad form
to have too much interaction between your template and your logic, but I
do have uses for this. Usually I just do something