public function initialize() { parent::initialize(); $this->setViewTemplate(function (\Nethgui\Renderer\Xhtml $view) { $p = $view->panel(); foreach ($view->getModule()->getChildren() as $child) { $p->insert($view->inset($child->getIdentifier())); } return $p; }); $this->loadChildrenDirectory(); $this->sortChildren(function ($a, $b) { if ($a->getIdentifier() == 'Index') { return -1; } if ($b->getIdentifier() == 'Index') { return 1; } return 0; }); }
public function initialize() { parent::initialize(); $this->loadChildrenDirectory(); $this->sortChildren(array($this, "sortPlugin")); }
public function initialize() { parent::initialize(); $this->loadChildrenDirectory($this, 'Dashboard/Applications'); $this->sortChildren(array($this, "sortApplication")); }