[Catalyst-dev] RT #36209: convert internal path seperators for
clarity
Matt S Trout
dbix-class at trout.me.uk
Tue Jun 3 07:31:03 BST 2008
On Mon, Jun 02, 2008 at 08:33:33AM -0500, Peter Karman wrote:
>
>
> On 06/01/2008 02:12 AM, Matt S Trout wrote:
>
> > I'm pretty sure the private namespace is basically useless for anything else
> > (yes, uri_for uses it, but any code that uses uri_for without either an action
> > object or an absolute URL is basically broken and the new action_uri/whatever
> > methods shouldn't need it at all).
> >
>
> Just to be clear, you're saying:
>
> $c->uri_for('foo');
>
> is "basically broken"?
Yep. It uses the internal action namespace, not the URI, so it's not
really a relative URI and can easily fail when you refactor your app later.
Just don't use it.
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
More information about the Catalyst-dev
mailing list