Esempio n. 1
0
 public function getAll()
 {
     $model = $this->getModel();
     $roots = \Admin\Models\Navigation::roots();
     \Base::instance()->set('roots', $roots);
     \Base::instance()->set('selected', 'null');
     $html = \Dsc\System::instance()->get('theme')->renderView('Admin/Views::menus/list_parents.php');
     return $this->outputJson($this->getJsonResponse(array('result' => $html)));
 }
Esempio n. 2
0
 public function fetchConditions()
 {
     parent::fetchConditions();
     $this->setCondition('type', $this->type());
     return $this;
 }