[Catalyst] Another RFC. $c->call()

Bill Moseley moseley at hank.org
Wed Apr 12 15:41:36 CEST 2006


On Wed, Apr 12, 2006 at 02:16:33PM +0200, Marcus Ramberg wrote:
> Please check out
> 
> http://marcusramberg.livejournal.com/12301.html

Great.  Although I think "call" sounds like a method call, when it's
more like a forward, except where you really mean it.

As I commented on #catalyst, I currently use the SubRequest plugin to
do this, which is a bit overkill.

    return $c->internal_redirect( 'list', { message => 'Invalid id'  } )
        unless $self->valid_id( $id );

but that's better reserved for a real subrequest.  Pre coffee so not
much help.  $c->send('list')?   $c->redispatch('list')?


-- 
Bill Moseley
moseley at hank.org




More information about the Catalyst mailing list