/** * @param string $path without starting slash * @param string|null $path without starting slash */ protected function addJsFile($path, $srcPathsuffix = null) { MyWebloader::addJsFile($this->buildSrcPath(), $path, $srcPathsuffix); }
public function renderWebloaderFiles() { echo ' <div id="scripts">' . MyWebloader::renderJs($this['js']) . '</div> <div id="styles">' . MyWebloader::renderCss($this['css']) . '</div> '; }
/** * adds css files to presenter's controlsCss array * * @param mixed $files */ public static function addCssStyle($files) { if (is_null(self::$presenter)) { throw new Exception('Cannot add css files before control is attached to presenter'); } // called from macros // if (func_num_args() > 1) { if (!is_array($files)) { $files = func_get_args(); } foreach ($files as $v) { if (is_array($v)) { MyWebloader::addCssFile(self::$webloaderSrcPath, $v[0], $v[1]); } else { MyWebloader::addCssFile(self::$webloaderSrcPath, $v); } } }