protected function extends($layout)
    {
        if ($this->extends !== false) {
            throw new Templating_Exception($this->current_view . ' is attempting to extend multiple layouts.');
        }
        $this->extends = $this->get_template_name($layout);
    }
protected function extends($layout)
    {
        if ($this->extends !== false) {
            throw new Templating_Exception($this->current_view . ' is attempting to extend multiple layouts.');
        }
        $this->extends = $this->get_template_name($layout);
    }
protected function extends ( $ layout ) { if ( $ this -> extends !== false ) { throw new Templating_Exception ( $ this -> current_view . ' is attempting to extend multiple layouts.' ) ; } $ this -> extends = $ this -> get_template_name ( $ layout ) ; }
Sets a layout to extend.

@since 1.0.0

@param string $layout The name of the layout to extend. Relative to theme.templates_directory config item.

@throws Templating_Exception If the current view is trying to extend multiple layouts.
Sets a layout to extend .