Esempio n. 1
0
File: Admin.php Progetto: atk4/atk4
 /**
  * Initialization.
  */
 public function init()
 {
     parent::init();
     $this->add($this->layout_class);
     $this->menu = $this->layout->addMenu('Menu_Vertical');
     $this->menu->swatch = 'ink';
     //$m = $this->layout->addFooter('Menu_Horizontal');
     //$m->addItem('foobar');
     $this->add('jUI');
     $this->initSandbox();
 }
Esempio n. 2
0
 function init()
 {
     parent::init();
     $this->dbConnect();
     $this->add('jUI');
     // Move to SandBOX Part Start
     $this->add($this->layout_class, null, 'Layout');
     $this->api->pathfinder->addLocation(array('addons' => array('vendor', 'shared/addons2', 'shared/addons')))->setBasePath($this->pathfinder->base_location->getPath() . '/..');
     // Should come from any local DB store
     // $this->xepan_addons = $addons = ['xepan\\base','xepan\\hr','xepan\\communication','xepan\\projects','xepan\\marketing','xepan\\accounts','xepan\\commerce','xepan\\production','xepan\\crm','xepan\\cms'];
     $this->xepan_addons = $addons = ['xepan\\base'];
     $this->xepan_app_initiators = $app_initiators = [];
     foreach ($addons as $addon) {
         $this->xepan_app_initiators[$addon] = $app_initiators[$addon] = $this->add("{$addon}\\Initiator")->setup_admin();
     }
 }