CGI-Mungo
view release on metacpan or search on metacpan
lib/CGI/Mungo/Response/TemplateToolkit.pm view on Meta::CPAN
=head2 setError($message)
$response->setError("something has broken");
Set an error message for the response, which is accessible in the error template
as [% message %].
=cut
#########################################################
sub setError(){
my($self, $message) = @_;
$self->setTemplateVar("message", $message); #so we can access the error message via smarty
return $self->SUPER::setError($message); #save the message for later in the instance
}
#########################################################
=pod
=head2 setTemplateVar($name, $value)
( run in 0.840 second using v1.01-cache-2.11-cpan-65fba6d93b7 )