objectConfig_Container::createComment (
string $content = ''
, string $where = 'bottom'
, object $target
= null
)
The current item must be a section. This is a helper method that calls createItem()
$content
Comment content
$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 directive using createComment()
<?php
$section =& new Config_Container('section', 'conf');
$section->createComment('Database Configuration');
?>