[Catalyst] New Catalyst + TT problem

Albert Vila avp at imente.com
Wed Dec 14 11:12:27 CET 2005


Hi all,

 After upgrade to the last Catalyst version my custom TT view does not 
work propertly.

 I was using

    our @template_path;
    __PACKAGE__->config->{INCLUDE_PATH} = \@template_path;

    sub process {
        my $self = shift;
        my $c = $_[0];
   
        my $root_path = $c->config->{root};
        my $default_path = "$root_path/default";

        if ($c->{stash}->{template_base}) {
            @template_path = 
("$root_path/".$c->{stash}->{template_base}, $default_path, $root_path);
        } else {
            @template_path = ($default_path, $root_path);
        }
   
        $self->SUPER::process(@_);
    }


 I've solved the problem using the 
$c->stash->{additional_template_paths}.  However, I think some people is 
using a similar solution to mine. Won't this option work anymore? I have 
to switch to the additional_template_paths variable?

 Thanks.



More information about the Catalyst mailing list