public function getLayoutPositions() { if (is_readable(ROOT . 'views' . DS . 'layout' . DS . $this->_template . DS . 'configs.php')) { include_once ROOT . 'views' . DS . 'layout' . DS . $this->_template . DS . 'configs.php'; return get_layout_positions(); } throw new Exception('Error configuracion layout'); }
public function getLayoutPositions() { //Verifica la existencia de los archivos de configuración del layout if (is_readable(ROOT . 'layouts' . DS . $this->_template . DS . 'configs.php')) { include_once ROOT . 'layouts' . DS . $this->_template . DS . 'configs.php'; //Retorna la configuracion del layout posiciones del layout disponibles return get_layout_positions(); } //No existe archivo de configuracion del layout throw new Exception('Error configuracion layout'); }