/** * Loading the ExtJs library and CSS in a view */ public function loadLibrary() { $lib = rtrim($this->config['library_path'], '/') . '/'; foreach (array_reverse($this->config['css']) as $css) { $this->headLink->prependStylesheet($lib . $css); } foreach (array_reverse($this->config['js']) as $js) { $this->headScript->prependFile($lib . $js); } }