how to reference a file at a application location?
I'm just trying to find a way to reference files for purposes of creating a hyper link, etc.
When using cfinclude for things like a header or footer, the location for the links may not always be accuate in the header and footer templates if you just hardcore the path in. Especially if they're being included from different directories, etc.
So, if I have something like...
- Web Root/
- Application.cfc
- index.cfm
- Tracker/
- templates/
- header.cfm
- footer.cfm
- views/
- index.cfm
- signout.cfm
- templates/
... how can I create a hyperlink in header.cfm that always has the correct path to signout.cfm. When a user accesses index.cfm at the web root location, and it does cfinclude index.cfm from the Tracker/views/ directory, the url will be the root url, still. If a user directly accesses the index.cfm from the Tracker/views directory then the url will have that path on it.
Is there a way to do soemthing like #Tracker.views.signout#, and it'll return the explicit path to that file, no matter what page I'm on?
Thanks,
