objectConfig_Container::createSection (
string $name
, array $attributes
= null
, string $where = 'bottom'
, object $target
= null
)
Must be called on a section. This is a helper method that calls createItem()
$name
Name of new section
array $attributes
Section attributes
$where
Where to create the new item ('top'
,
'bottom'
,
'before'
,
'after'
)
$target
Required only if 'before'
or 'after'
is used for
$where
object
- reference to new item
Error code | Error value | Meaning | Solution |
---|---|---|---|
" |
This function can not be called statically.
Create a new section using createSection()
<?php
$conf =& new Config_Container('section', 'MAIN');
$dbConf =& $conf->createSection('DB');
$dbConf->createDirective('user', 'mansion');
?>