src/Layout.php
public function getRegion($name)
    {
        if(array_key_exists($name, $this->_regions)) {
            $html = (is_subclass_of($this->_regions[$name], 'erdiko\core\Container')) ?
                $this->_regions[$name]->toHtml() : $this->_regions[$name];
        } else {
            throw new \Exception("Template region '{$name}' does not exits.");
        }
        
        return $html;
    }
public function getRegion($name)
    {
        if(array_key_exists($name, $this->_regions)) {
            $html = (is_subclass_of($this->_regions[$name], 'erdiko\core\Container')) ?
                $this->_regions[$name]->toHtml() : $this->_regions[$name];
        } else {
            throw new \Exception("Template region '{$name}' does not exits.");
        }
        
        return $html;
    }
public function getRegion ( $ name ) { if ( array_key_exists ( $ name , $ this -> _regions ) ) { $ html = ( is_subclass_of ( $ this -> _regions [ $ name ] , 'erdiko\core\Container' ) ) ? $ this -> _regions [ $ name ] -> toHtml ( ) : $ this -> _regions [ $ name ] ; } else { throw new \ Exception ( "Template region '{$name}' does not exits." ) ; } return $ html ; }
get rendered region

@param string $name
@return mixed $content, typically a string, Container object or other object
get rendered region