private function getFileLocation($file) { $pathToFile = stripos($file, ".js") === false ? parent::getCSSPath() : parent::getJSPath(); //trim the first forward slash off, since PHP doesn't look at the file system the same way apache would from the HTML file. $currentFile = substr("{$pathToFile}{$file}", 1); return $currentFile; }