initLayout() public method

This method loads either class or static file.
public initLayout ( )
Ejemplo n.º 1
0
Archivo: Admin.php Proyecto: atk4/atk4
 /**
  * @todo Description
  */
 public function initLayout()
 {
     if ($this->pathfinder->sandbox) {
         $this->initAddons();
     } else {
         if (preg_match('/^sandbox_/', $this->app->page)) {
             $this->app->redirect('sandbox');
         }
     }
     $this->addLayout('mainMenu');
     parent::initLayout();
     $this->initTopMenu();
     if (!$this->pathfinder->sandbox && !$this->app->getConfig('production', false)) {
         $this->menu->addItem(array('Install Developer Toools', 'icon' => 'tools'), 'sandbox');
     }
     if (@$this->sandbox) {
         $this->sandbox->initLayout();
     }
 }