src/App.php
public function initLayout($seed)
    {
        $layout = $this->factory($seed, null, 'Layout');
        $layout->app = $this;

        if (!$this->html) {
            $this->html = new View(['defaultTemplate' => 'html.html']);
            $this->html->app = $this;
            $this->html->init();
        }

        $this->layout = $this->html->add($layout);

        $this->initIncludes();

        return $this;
    }
public function initLayout($seed)
    {
        $layout = $this->factory($seed, null, 'Layout');
        $layout->app = $this;

        if (!$this->html) {
            $this->html = new View(['defaultTemplate' => 'html.html']);
            $this->html->app = $this;
            $this->html->init();
        }

        $this->layout = $this->html->add($layout);

        $this->initIncludes();

        return $this;
    }
public function initLayout ( $ seed ) { $ layout = $ this -> factory ( $ seed , null , 'Layout' ) ; $ layout -> app = $ this ; if ( ! $ this -> html ) { $ this -> html = new View ( [ 'defaultTemplate' => 'html.html' ] ) ; $ this -> html -> app = $ this ; $ this -> html -> init ( ) ; } $ this -> layout = $ this -> html -> add ( $ layout ) ; $ this -> initIncludes ( ) ; return $ this ; }
Initializes layout.

@param string|Layout\Generic|array $seed

@return $this
Initializes layout .