Hi all,
I'm trying to use Catayst::View::XSLT and my end sub looks like this:
# from MyApp::Controller::Root
sub end : Private {
my ( $c, $self ) = @_;
$c-forward( $c-view('XSLT') );
}
but when I make a request to the server I get an error:
[error] Caught exception in
Adeola Awoyemi wrote:
# from MyApp::Controller::Root
sub end : Private {
my ( $c, $self ) = @_;
$c-forward( $c-view('XSLT') );
}
try:
my( $self, $c ) = @_;
-Brian
___
List: Catalyst@lists.rawmode.org
Listinfo:
Adeola Awoyemi wrote on 8/2/07 6:12 AM:
Hi all,
I'm trying to use Catayst::View::XSLT and my end sub looks like this:
# from MyApp::Controller::Root
sub end : Private {
my ( $c, $self ) = @_;
$c-forward( $c-view('XSLT') );
}
my ($self, $c) = @_;
you got 'em reversed.
--
Peter
Brian Cassidy wrote:
Adeola Awoyemi wrote:
# from MyApp::Controller::Root
sub end : Private {
my ( $c, $self ) = @_;
$c-forward( $c-view('XSLT') );
}
try:
my( $self, $c ) = @_;
Doh! How could I have missed that one?! I feel sheepish ;-)
Thanks Brian Peter.
--
Creative Developer