コード例 #1
0
 /**
  * adds a link tag to the queue
  * @param source - string representing the path to the file on the server.
  * @param globalScope - boolean representing if this is a site script vs a page script.  optional.  Defaults to global (true).
  * @throws Exception - if the file located at $source doesn't exist
  */
 public function addStyleSheet($source, $globalScope = true)
 {
     $currentFile = $this->getFileLocation("{$source}");
     if (file_exists($currentFile)) {
         echo "file exists: {$currentFile}";
     } else {
         echo "couldn't find file: {$currentFile}";
     }
     parent::addStyleSheet($source);
     array_push($this->linkScope, $globalScope);
 }