CC-2184 : Hardcoded CSS path should be relative path instead

using baseURL zend provides in path.
This commit is contained in:
Naomi 2011-04-18 11:02:09 -04:00
parent 114fe1ad3f
commit 23105b9d67
12 changed files with 111 additions and 99 deletions

View file

@ -75,8 +75,11 @@ class PlaylistController extends Zend_Controller_Action
public function indexAction()
{
$this->view->headScript()->appendFile('/js/airtime/library/spl.js','text/javascript');
$this->view->headLink()->appendStylesheet('/css/playlist_builder.css');
$request = $this->getRequest();
$baseUrl = $request->getBaseUrl();
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/library/spl.js','text/javascript');
$this->view->headLink()->appendStylesheet($baseUrl.'/css/playlist_builder.css');
$this->_helper->viewRenderer->setResponseSegment('spl');
$this->view->pl = $this->getPlaylist();