[Catalyst] Form handling, urls and web design
Yuval Kogman
nothingmuch at woobling.org
Tue Jan 24 00:00:18 CET 2006
On Mon, Jan 23, 2006 at 16:26:25 -0600, Brandon Black wrote:
> sub view : Local {
> my ($self, $c) = @_;
>
> my $username = $c->req->args->[0];
>
> $c->res->redirect('list') if !$username;
>
> ......
> }
sub view : Local {
my ( $self, $c, $user ) = @_;
$c->res->redirect('list') unless $username;
}
?
--
() Yuval Kogman <nothingmuch at woobling.org> 0xEBD27418 perl hacker &
/\ kung foo master: *shu*rik*en*sh*u*rik*en*s*hur*i*ke*n*: neeyah!!!!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060124/ea535cdd/attachment.pgp
More information about the Catalyst
mailing list