[Catalyst] sample code for feedback

Jose Nyimi josenyimi at skynet.be
Thu Jun 23 22:35:35 CEST 2005

> -----Message d'origine-----
> De : catalyst-bounces at lists.rawmode.org 
> [mailto:catalyst-bounces at lists.rawmode.org] De la part de 
> Perrin Harkins
> Envoyé : jeudi 23 juin 2005 19:59
> À : The elegant MVC web framework
> Objet : Re: [Catalyst] sample code for feedback
> It seemed like I was using the standard 
> stuff, except for one spot at the end of the sign() method 
> where I had to call another method directly rather than 
> forwarding in order to pass a parameter.  I was glad to see 
> that it worked just fine to do that though.

Indeed, the first think that bother my eyes was the
$self->view( $c, $c->req()->param('petition_id') ); call.
For the purpose of showing the alternative, I would be putting
in comment the forwarding Cat's style.

BTW, is
$c->forward( 'view' , $c->req()->param('petition_id') );
A correct syntax ?


More information about the Catalyst mailing list