[Catalyst] website member urls

Charles cshtreck at yahoo.com
Wed Apr 29 20:52:57 GMT 2009


hans,

This seems to work, although, i'd have to add logic to have this member con=
troller  ignore the following types of urls

http://websiteurl.com/signup
http://websiteurl.com/members/ <=3D users see this as their url when logged=
 in.

-Charles



________________________________
From: Hans Dieter Pearcey <hdp.perl.catalyst.users at weftsoar.net>
To: catalyst at lists.scsys.co.uk
Sent: Wednesday, April 29, 2009 4:42:08 PM
Subject: Re: [Catalyst] website member urls

On Wed, Apr 29, 2009 at 05:31:43PM -0300, Fernan Aguero wrote:
> On Wed, Apr 29, 2009 at 5:23 PM, Charles <cshtreck at yahoo.com> wrote:
> > I'd like someone w/ better catalyst-fu to recommend how I could impleme=
nt
> > urls for members a la myspace and youtube ( ie
> >  http://websiteurl.com/) .
> > There's got to be a better way that creating a seperate controller for =
each
> > user.
> =

> sub member : Regex('\S+') {
>  my ($self, $c) =3D @_;

Using Regex for that seems weird to me.

  sub member : Chained(/) Args(1) {
    my ($self, $c, $id) =3D @_;
    ...
  }

hdp.

_______________________________________________
List: Catalyst at lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/



      =

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090429/5df36=
174/attachment.htm


More information about the Catalyst mailing list