[Catalyst] Weird error using Catalyst::View::Mason

Raphael Kraus rkraus at wildtechnology.net
Tue Feb 7 09:58:25 CET 2006


G'day all...
 
I'm using Catalyst::View::Mason as my view class. The application name
is 'Wild'.

I've created a controller and a view using the helper. (View created as
`script/wild_create.pl view Mason Mason`.)

In the application object's file 'Wild.pm' I place:

sub end : Private {
    my ( $self, $c ) = @_;
    $c->forward( $c->view('Wild::View::Mason') ) unless
$c->response->body;
}

 ... and I get spurious errors when one of my controllers sets a
template...

*but*

If I place this in 'Wild.pm':

sub end : Private {
    my ( $self, $c ) = @_;
    $c->forward( $c->view('') ) unless $c->response->body;
}

It works perfectly.

(Forgive me, I'm still new at this.) I thought that you needed to
specify the name of the view as in the earlier, but apparently incorrect
end method.

Is there something I'm doing wrong here?!? :)

TIA!


Regards,
 
Raphael Kraus
Software Developer
rkraus at wildtechnology.net
02 8306 0007 Direct Line
02 8306 0077 Sales | 02 8306 0099 Fax
02 8306 0088 Support
02 8306 0055 Administration
1300 13 WILD (9453) National | 1300 88 WILD (9453) Fax


--------------------------------------------------------------------------------
Wild Internet & Telecom, ABN 98 091 470 692
Finance - Ground Floor, 265/8 Lachlan Street, Waterloo NSW 2017
Sales - Level 16 , 1604/6 Lachlan Street, Waterloo NSW 2017
Telephone 1300-13-9453 |  Facsimile 1300-88-9453
http://www.wildit.com.au
DISCLAIMER & CONFIDENTIALITY NOTICE:  The information contained in this email message and any attachments may be confidential information and may also be the subject of client legal - legal professional privilege. If you are not the intended recipient, any use, interference with, disclosure or copying of this material is unauthorised and prohibited.   This email and any attachments are also subject to copyright.  No part of them may be reproduced, adapted or transmitted without the written permission of the copyright owner.  If you have received this email in error, please immediately advise the sender by return email and delete the message from your system.






More information about the Catalyst mailing list