darksniperx Posted July 30, 2011 Share Posted July 30, 2011 I tried: <link rel="stylesheet" href="<?php echo dirname(__FILE__); ?>/css/a3.css" type="text/css" /> or <link rel="stylesheet" href="css/a3.css" type="text/css" /> I get The requested URL /usr/local/www/vhosts/htdocs/application/views/home/css/a3.css was not found on this server. The file is physically there. Yet i cannot access it. Link to comment https://forums.phpfreaks.com/topic/243249-cant-access-extenal-scripts-or-css-with-mvc/ Share on other sites More sharing options...
trq Posted July 30, 2011 Share Posted July 30, 2011 Browsers are unable to access anything above the servers root directory. Use $_SERVER['DOCUMENT_ROOT'] in place of dirname(__FILE__). Link to comment https://forums.phpfreaks.com/topic/243249-cant-access-extenal-scripts-or-css-with-mvc/#findComment-1249327 Share on other sites More sharing options...
darksniperx Posted August 1, 2011 Author Share Posted August 1, 2011 the issues what with mvc directory rewrite, i figured out the actual path needed the firebug. Link to comment https://forums.phpfreaks.com/topic/243249-cant-access-extenal-scripts-or-css-with-mvc/#findComment-1250263 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.