Beispiel #1
0
 /**
  * Link an external file into the final XHTML document
  *
  * The XHTML tag generated depends on the file extension. Javascript (.js)
  * needs the SCRIPT tag, External stylesheets (.css) a LINK tag.
  * 
  * @api
  * @param string $fileName
  * @return Xhtml
  */
 public function useFile($fileName)
 {
     $this->staticFiles->useFile($this->getPathUrl() . $fileName);
     return $this;
 }
Beispiel #2
0
 private function getCode($ext)
 {
     return $this->staticFiles->getCode($ext);
 }