Hello!
On 5/17/07, Christopher H. Laco <[EMAIL PROTECTED]> wrote:
$c->res->body
If it has stuff, I'm pretty sure it bypasses the View.
If I use this code
sub buttonPressed : Local {
my ( $self, $c ) = @_;
my $name = $c->request->params->{name};
my $log = $c->log;
$log->debug("buttonPressed");
$c->res->body = 'Hello ' . $name . ', welcome to the world of Dojo!\n';
}
I get following error (in the log file):
[debug] buttonPressed
[error] Caught exception in HelloWorld::Controller::Root->buttonPressed "Can't m
odify non-lvalue subroutine call at C:/work/business/prog/i5invest/2007_05_17_ba
sicAjaxWithCatalyst/HelloWorld/script/../lib/HelloWorld/Controller/Root.pm line
51."
[info] Request took 0.060205s (16.610/s)
What am I doing wrong?
TIA
Dmitri Pissarenko
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/