예제 #1
0
파일: View.php 프로젝트: poehlmann/tesis
 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');
 }
예제 #2
0
파일: View.php 프로젝트: enkee/mvc20a
 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');
 }