SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    I Never Give Up roosevelt's Avatar
    Join Date
    May 2005
    Posts
    515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Unhappy 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:



    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.

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    /path/to/css/files/style.css

    prefixing / starts it from the root.

    so it acts like http://domain.com/ without it
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  3. #3
    I Never Give Up roosevelt's Avatar
    Join Date
    May 2005
    Posts
    515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    wicked! Let me try it out.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •