[Catalyst] tutorial - adding "auth" function

Marcello Romani mromani at ottotecnica.com
Tue Jun 27 17:49:22 CEST 2006


Matt S Trout ha scritto:
> Marcello Romani wrote:
>> Matt S Trout ha scritto:
>>> I like checking ($c->action->reverse eq 'users/login') myself.
>> Matt, what do you think of ($c->req->path eq 'auth/login') ?
> 
> Fine until the marketing department decides that actually, the URL should be 
> "authen/login". If you always use the private action names to do the work 
> that's easy to do. If you rely on public URIs in your code, not so easy ...
> 

Thanks.

Therefore the 'reverse' method gives the private "path" of the action ?


-- 
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com



More information about the Catalyst mailing list