public function section($name, $createIfNotExists = true)
    {
        $section = $this->getComponent('section-' . $name);
        if (!$section && $createIfNotExists) {
            $section = new Section($name);
            $section->attachToCompound($this);
        }
        return $section;
    }
public function section($name, $createIfNotExists = true)
    {
        $section = $this->getComponent('section-' . $name);
        if (!$section && $createIfNotExists) {
            $section = new Section($name);
            $section->attachToCompound($this);
        }
        return $section;
    }
public function section ( $ name , $ createIfNotExists = true ) { $ section = $ this -> getComponent ( 'section-' . $ name ) ; if ( ! $ section && $ createIfNotExists ) { $ section = new Section ( $ name ) ; $ section -> attachToCompound ( $ this ) ; } return $ section ; }
Returns section with specified name.

@param string $name
@param bool $createIfNotExists
@return Section|null
Returns section with specified name .