/** * Add css-file in list * @param $fileName */ public function css($fileName) { if (is_array($fileName)) { self::$css = array_merge(controllerManager::$css, $fileName); } else { self::$css[] = $fileName; } }
/** * Set js & css given from controller properties */ private function setResourcesFromControllerProperty() { if (isset($this->routingInfo['css'])) { if (is_array($this->routingInfo['css'])) { controllerManager::$css = array_merge(controllerManager::$css, $this->routingInfo['css']); } else { controllerManager::$css[] = $this->routingInfo['css']; } } if (isset($this->routingInfo['js'])) { if (is_array($this->routingInfo['js'])) { controllerManager::$js = array_merge(controllerManager::$js, $this->routingInfo['js']); } else { controllerManager::$js[] = $this->routingInfo['js']; } } }