Exemplo n.º 1
0
 public function renderScript($script = "")
 {
     if (empty($script)) {
         $script = $this->view . '.js';
     }
     if (file_exists(SCRIPTS . $script)) {
         echo '<script src="' . Router::buildURL("/scripts/{$script}") . '"></script>';
     }
 }