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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-27-2008, 06:31 PM
Junior Member
 
Join Date: Mar 2008
Posts: 1
Default CSS & Images Problems

Hi all,

I'm having a problem displaying CSS / Images / Scripts. When I view the linked CSS, there's an Exception that's being caught in the bootstrap.php file saying:

Caught exception: Zend_Controller_Dispatcher_Exception
Message: Invalid controller specified (error)

Images just aren't being found.

I'm running IIS and have the ISAPI_Rewrite set up as per the docs:

RepeatLimit 20
RewriteRule (?!\.(js|ico|gif|jpg|png|css|swf))$ myApp/public/index.php

Everything's installed in a subdirectory ("root/myApp").

myApp/
------application/
-----------------bootstrap.php
-----------------modules/
------library/
------public/
-----------images/
-----------css/
-----------index.php


I've tried absolute urls on the CSS and images (both "/myApp/public/images/image.jpg", and "http://127.0.0.1/myApp.../images.jpg"), with no result.

I've searched the forums and haven't found anything that works...so any help would be really appreciated, I've been at this all day and am close to pulling out hair

Cheers!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-06-2008, 11:58 AM
Junior Member
 
Join Date: May 2008
Posts: 2
Default

hi
to solve this probleme i initialise in my controller
$this->view->baseUrl = $this->_request->getBaseUrl(); to get the root of my webapp and in the view to display image in images directory <?=$this->baseurl?>/images/image.png
have a nice day
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 06:21 PM.