[Catalyst] reserved words
Jason Kohles
email at jasonkohles.com
Wed Mar 7 16:00:13 GMT 2007
On Mar 6, 2007, at 12:02 PM, Octavian Rasnita wrote:
> Hi,
>
> Please tell me how can I find the list of reserved words that
> cannot be used as names for views, controllers, models, $c->stash
> elements...
>
> For example I have seen that the name of the application is also
> found in $c->stash->{name}. $c->stash->{template} is also special.
>
> I have also tried to create a view with the name "Show", and I have
> received the following error in the browser:
>
> Caught exception in TranzactiiBursiere::View::Show->process
> "TranzactiiBursiere::View::Show directly inherits from
> Catalyst::View. You need to
> inherit from a subclass like Catalyst::View::TT instead.
>
> If I changed the name of that view to "Html", it worked fine, with
> no errors...
>
This is the error message you get if you create a subclass of
Catalyst::View that doesn't implement a process() method. It
probably doesn't have anything to do with the name of the module...
--
Jason Kohles
email at jasonkohles.com
http://www.jasonkohles.com/
"A witty saying proves nothing." -- Voltaire
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070307/78c31be0/attachment.htm
More information about the Catalyst
mailing list