App_Web::initLayout PHP Метод

initLayout() публичный Метод

Layout is region in shared template which may be replaced by object.
public initLayout ( )
    public function initLayout()
    {
        if ($this->layout_initialized) {
            throw $this->exception('Please do not call initLayout() directly from init()', 'Obsolete');
        }
        $this->layout_initialized = true;
    }

Usage Example

Пример #1
0
 /**
  * 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');
 }