I'm not sur ebut is there not a constant for the web root...
sfConfig::get('sf_web_dir');
On 21/07/07, Marli <[EMAIL PROTECTED]> wrote:
>
>
> Ok, I think basically what the point is here is that there should be
> some form of helper that links to asset files the same way as the
> image_tag() helper does. Can this be implemented?
>
> On Jul 22, 2:30 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> > > From what i've read they have made it like that by intent, the helper
> > > is not really useful or faster for absolute urls anyhow.
> >
> > Actually, I disagree. When you are moving code around in deep paths,
> > it gets tedious to keep updating the root directory. If your project
> > is at: localhost/path/to/symfony/web/, then you can easily move/
> > symlink it to localhost/symfony and your code will automatically
> > adapt.
> >
> > Sure, you can do this in the template with SERVER_ROOT, but that is
> > not very clean. This provides a clean method and the overhead of
> > doing so is really just a function call. :)
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---