public function initLayout() { if ($this->layout_initialized) { throw $this->exception('Please do not call initLayout() directly from init()', 'Obsolete'); } $this->layout_initialized = true; }
/** * Content in the global (shared.html) template is rendered by page object. * This method loads either class or static file. */ public function initLayout() { parent::initLayout(); $this->addLayout('Content'); }