[Catalyst] Variable Catalyst seems to be undefined.

Will Hawes wdhawes at gmail.com
Fri May 9 15:14:31 BST 2008


2008/5/9 Kieren Diment <diment at gmail.com>:
>
> On 10 May 2008, at 00:01, Chris Devine wrote:
>
>> TIA for any insight. I am new to Catalyst, using ver. 5.7012. I am working
>> through JR's examples as well trying to modify them. I found a strange
>> problem (to me) that I couldn't find any solution for by searching.
>>
>> Loosely based on Addressbook, it seems that the variable Catalyst in
>> index.tt2 is not defined. I first noticed this by
>> Catalyst.uri_for('/login')
>> returning ''.
>>
>> Does anyone have any pointers on debugging this?

And if in doubt, just use some warn statements or $c->log->debug calls
in your view class, along with Data::Dumper, to see what is being
passed to the template.



More information about the Catalyst mailing list