Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-02-2008, 02:34 PM
Junior Member
 
Join Date: Apr 2008
Location: Moldova, Chisinau
Posts: 1
Send a message via ICQ to erani Send a message via Yahoo to erani Send a message via Skype™ to erani
Default base url problem

Hello!

The problem is with displaing images and css files.

I have a project, let name it myproject, so i store the project files at:
/srv/www/html/projects/myproject
The url to project will be:
http://localhost/projects/myproject
In html code I include the css file from "styles/style.css"
DocumentRoot point to: /srv/www/html/projects/myproject/public
and css files are find in /srv/www/html/projects/myproject/public/styles

If i write in url the path: http://localhost/projects/myproject, the problem with loading the css doesn't exist, but when I try http://localhost/projects/myproject/article/add, the file doesn't load. I read at Base URL and subdirectories - Zend Framework Wiki that I must set baseurl to "/projects/myproject/public" but this doesn't what.

Do I missing something? or I do something wrong?

THX
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-23-2008, 12:08 PM
Junior Member
 
Join Date: Mar 2008
Posts: 2
Default

The SpotSec_View_Helper_BaseUrl should do the trick:

Zend Framework BaseUrl View Helper*|*SpotSec Networks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:07 AM.