Re: error in Package config
| From: | Bertrand Mansion | Date: | Tue, 20 May 2003 16:56:32 +0000 |
| Subject: | Re: error in Package config | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-5483@lists.php.net to get a copy of this message | ||
<alvaro61@hotmail.com> wrote :
> I have one error using the first example of manual about of Config Package
>
> error:
> call to a member function on a non-object in phparray.php line 212
>
> function _getParentString(&$obj)
> {
> $string = '';
> if (!$obj->isRoot()) {
> if (!$obj->parent->isRoot()) { //IT IS THE LINE 212
> $string = "['".$obj->name."']";
> } else {
> if (empty($this->options['name'])) {
> $string .= '$'.$obj->name;
> } else {
> $string .=
>
> '$'.$this->options['name']."['".$obj->name."']";
> }
> }
> $string = $this->_getParentString($obj->parent).$string;
> $count = $obj->parent->countChildren(null, $obj->name);
> if ($count > 1) {
> $string .= '['.$obj->getItemPosition().']';
> }
> }
> return $string;
> } // end func _getParentString
>
> help me.
I'll fix that tomorrow. In the meanwhile, don't refer too much to the
examples in the manual, I will add some new ones soon.
Bertrand Mansion
Mamasam