예제 #1
0
 public static function getAll($sitio = null, $limit = 0)
 {
     if ($sitio) {
         $where = "id_sitio = {$sitio}";
     }
     $order = "id";
     $configuracion = new Configuracion();
     return $configuracion->fetchAll($where, $order, $limit);
 }
예제 #2
0
 function indexAction()
 {
     //$info = Zend_Registry::get ('personalizacion');
     Zend_Loader::loadClass('Configuracion');
     $configuracion = new Configuracion();
     $where = array();
     $order = "id";
     $conf_arr = $configuracion->fetchAll($where, $order);
     if (isset($conf_arr->sitio_titulo)) {
         $this->view->title = $conf_arr->sitio_titulo;
     }
     if ($this->session->sitio->url_home != '') {
         $this->_redirect($this->session->sitio->url_home);
     }
     return;
 }