Beispiel #1
0
 public function deleteItemAction()
 {
     $id = $this->request->getParam('id');
     $model = new Model\Items();
     $entity = $model->find((int) $id);
     if ($entity) {
         $model->delete($entity);
     }
     return new RedirectResponse(route(\null, array('action' => 'items', 'id' => \null)));
 }
Beispiel #2
0
 public function updateTree(array $tree)
 {
     $this->_updateTree($tree);
     $itemsModel = new Model\Items();
     $itemsModel->removeCache();
 }