Beispiel #1
0
 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');
 }
Beispiel #2
0
 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');
 }