On Wed, Apr 29, 2009 at 5:23 PM, Charles <[email protected]> wrote:
> I'd like someone w/ better catalyst-fu to recommend how I could implement
> urls for members a la myspace and youtube ( ie
>  http://websiteurl.com/<membername> ) .
> There's got to be a better way that creating a seperate controller for each
> user.

sub member : Regex('\S+') {
 my ($self, $c) = @_;
 my $user = $c->req->captures->[0];

if ( $c->model->('Users')->find($user) ) {
 # user exists, do something
 }


}


-- 
fernan

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to