public function render()
    {
        $iniString   = '';
        $extends     = $this->_config->getExtends();
        $sectionName = $this->_config->getSectionName();

        if($this->_renderWithoutSections == true) {
            $iniString .= $this->_addBranch($this->_config);
        } else if (is_string($sectionName)) {
            $iniString .= '[' . $sectionName . ']' . "\n"
                       .  $this->_addBranch($this->_config)
                       .  "\n";
        } else {
            $config = $this->_sortRootElements($this->_config);
            foreach ($config as $sectionName => $data) {
                if (!($data instanceof Zend_Config)) {
                    $iniString .= $sectionName
                               .  ' = '
                               .  $this->_prepareValue($data)
                               .  "\n";
                } else {
                    if (isset($extends[$sectionName])) {
                        $sectionName .= ' : ' . $extends[$sectionName];
                    }

                    $iniString .= '[' . $sectionName . ']' . "\n"
                               .  $this->_addBranch($data)
                               .  "\n";
                }
            }
        }

        return $iniString;
    }
public function render()
    {
        $iniString   = '';
        $extends     = $this->_config->getExtends();
        $sectionName = $this->_config->getSectionName();

        if($this->_renderWithoutSections == true) {
            $iniString .= $this->_addBranch($this->_config);
        } else if (is_string($sectionName)) {
            $iniString .= '[' . $sectionName . ']' . "\n"
                       .  $this->_addBranch($this->_config)
                       .  "\n";
        } else {
            $config = $this->_sortRootElements($this->_config);
            foreach ($config as $sectionName => $data) {
                if (!($data instanceof Zend_Config)) {
                    $iniString .= $sectionName
                               .  ' = '
                               .  $this->_prepareValue($data)
                               .  "\n";
                } else {
                    if (isset($extends[$sectionName])) {
                        $sectionName .= ' : ' . $extends[$sectionName];
                    }

                    $iniString .= '[' . $sectionName . ']' . "\n"
                               .  $this->_addBranch($data)
                               .  "\n";
                }
            }
        }

        return $iniString;
    }
public function render ( ) { $ iniString = '' ; $ extends = $ this -> _config -> getExtends ( ) ; $ sectionName = $ this -> _config -> getSectionName ( ) ; if ( $ this -> _renderWithoutSections == true ) { $ iniString .= $ this -> _addBranch ( $ this -> _config ) ; } else if ( is_string ( $ sectionName ) ) { $ iniString .= '[' . $ sectionName . ']' . "\n" . $ this -> _addBranch ( $ this -> _config ) . "\n" ; } else { $ config = $ this -> _sortRootElements ( $ this -> _config ) ; foreach ( $ config as $ sectionName => $ data ) { if ( ! ( $ data instanceof Zend_Config ) ) { $ iniString .= $ sectionName . ' = ' . $ this -> _prepareValue ( $ data ) . "\n" ; } else { if ( isset ( $ extends [ $ sectionName ] ) ) { $ sectionName .= ' : ' . $ extends [ $ sectionName ] ; } $ iniString .= '[' . $ sectionName . ']' . "\n" . $ this -> _addBranch ( $ data ) . "\n" ; } } } return $ iniString ; }
Render a Zend_Config into a INI config string.

@since 1.10
@return string
Render a Zend_Config into a INI config string .