SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
-
Jan 27, 2008, 23:37 #1
Zend Framework :: Site URL, Path and Etc...
Hello everyone,
I've been looking for this for a while now but success is not even close. I've used Codeigniter before and they have this URL Helper which can retrieve the following things:
- site_url($var) - Generates a full site url like: http://domain.com/class/action
- base_url() - Generates the base URL like: http://domain.com
In one of my View files I am including .css file. This view like is being loaded in this call:
http//domain.com/testclass/testmethod/
Now in HTML part of my view file I will need to include the .css file. But I can't find a way to generate a full URL to the .css file dynamically.
-
Jan 28, 2008, 00:04 #2
/path/to/css/files/style.css
prefixing / starts it from the root.
so it acts like http://domain.com/ without it
-
Jan 28, 2008, 16:25 #3
wicked! Let me try it out.
Bookmarks