Ejemplo n.º 1
0
 public static function getAll($sitio = null, $limit = 0)
 {
     if ($sitio) {
         $where = "id_sitio = {$sitio}";
     }
     $order = "id";
     $items = new MenusItems();
     return $items->fetchAll($where, $order, $limit);
 }
Ejemplo n.º 2
0
 public function editarAction()
 {
     $this->view->subtitle = $this->info->sitio->menus->items->index->titulo;
     $menuItems = new MenusItems();
     $idMenu = $this->_request->getParam('id');
     $where = 'id_menu=' . $idMenu;
     $this->view->items = $menuItems->fetchAll($where, 'posicion');
     $this->view->idMenu = $idMenu;
     $this->render();
 }