[cgiapp] Re: Model design in C::A/Titanium

Richard Jones ra.jones at dpw.clara.co.uk
Tue Sep 23 16:30:40 EDT 2008


Hi Mark,

Appreciate the reply.

Mark Stosberg wrote:
> And one other suggestion: If you find you are doing this a lot:
> 
>     $c->param('model')
> 
> Go ahead and make a simple shortcut method for it, so you can just say
> 
>  $c->model;

Did you have something like this in mind:

sub model {
   my $c = shift;

   return $c->param('model');
}

Seems a bit, erm,  'trivial' ?


More information about the cgiapp mailing list