View = $View; parent::__construct($View, $settings); } public function afterRender($viewFile) { $this->autoAssets(); parent::afterRender($viewFile); } public function beforeRender($viewFile) { $this->scriptBlock("document.documentElement.className = 'js';", array('inline'=>false)); parent::beforeRender($viewFile); } function autoAssets($folders = array()){ $assetFiles = array(); $controller = inflector::camelize($this->View->request->params['controller']); $action = inflector::camelize($this->View->request->params['action']); $pass = (isset($this->View->request->params['pass'][0])) ? inflector::camelize($this->View->request->params['pass'][0]) : false; $assetFiles[] = 'theme'; $assetFiles[] = 'theme' . inflector::camelize($this->View->layout); $assetFiles[] = $controller; $assetFiles[] = $controller . $action; $assetFiles[] = $controller . $action . $pass; $ruta_archivos_css_raiz = Configure::read('App.www_root') . 'css' . DS ; $ruta_archivos_css_theme = App::themePath($this->theme) . 'webroot' . DS . 'css' . DS; $ruta_archivos_js_raiz = Configure::read('App.www_root') . 'js' . DS ; $ruta_archivos_js_theme = App::themePath($this->theme) . 'webroot' . DS . 'js' . DS; foreach($assetFiles as $i=>$f){ if(is_file($ruta_archivos_css_raiz . $f . '.css') || is_file($ruta_archivos_css_theme . $f . '.css')){ $this->css($f, null, array('inline'=>false)); } if(is_file($ruta_archivos_js_raiz . $f . '.js') || is_file($ruta_archivos_js_theme . $f . '.js')){ $this->script($f, array('inline'=>false)); } } } function link($text, $url = array(), $options = array(), $confirmMessage = false){ $options['escape'] = false; return parent::link($text, $url, $options, $confirmMessage); } function image($path, $options = array()){ $options['escape'] = false; return parent::image($path, $options); } } ?>View = $View; parent::__construct($View, $settings); } public function afterRender($viewFile) { $this->autoAssets(); parent::afterRender($viewFile); } public function beforeRender($viewFile) { $this->scriptBlock("document.documentElement.className = 'js';", array('inline'=>false)); parent::beforeRender($viewFile); } function autoAssets($folders = array()){ $assetFiles = array(); $controller = inflector::camelize($this->View->request->params['controller']); $action = inflector::camelize($this->View->request->params['action']); $pass = (isset($this->View->request->params['pass'][0])) ? inflector::camelize($this->View->request->params['pass'][0]) : false; $assetFiles[] = 'theme'; $assetFiles[] = 'theme' . inflector::camelize($this->View->layout); $assetFiles[] = $controller; $assetFiles[] = $controller . $action; $assetFiles[] = $controller . $action . $pass; $ruta_archivos_css_raiz = Configure::read('App.www_root') . 'css' . DS ; $ruta_archivos_css_theme = App::themePath($this->theme) . 'webroot' . DS . 'css' . DS; $ruta_archivos_js_raiz = Configure::read('App.www_root') . 'js' . DS ; $ruta_archivos_js_theme = App::themePath($this->theme) . 'webroot' . DS . 'js' . DS; foreach($assetFiles as $i=>$f){ if(is_file($ruta_archivos_css_raiz . $f . '.css') || is_file($ruta_archivos_css_theme . $f . '.css')){ $this->css($f, null, array('inline'=>false)); } if(is_file($ruta_archivos_js_raiz . $f . '.js') || is_file($ruta_archivos_js_theme . $f . '.js')){ $this->script($f, array('inline'=>false)); } } } function link($text, $url = array(), $options = array(), $confirmMessage = false){ $options['escape'] = false; return parent::link($text, $url, $options, $confirmMessage); } function image($path, $options = array()){ $options['escape'] = false; return parent::image($path, $options); } } ?> CakePHP: the rapid development php framework: Errors/

An Internal Error Has Occurred.

Error: An Internal Error Has Occurred.