Hi, I created this class in admin/includes/classes:
And I am trying to use that class in my own page, say admin/gallery.php:Code:class Designer{ var $attributes, $values; function Designer($values = "") { $attributes = explode(",",DB_DESIGNERS_ATTRIBUTES); print_r($attributes); if (!is_array($values)) { $values = str_replace(" ", "", $values); $values = explode(",", $values); } $this->values = $values; return true; } function getDesignerAttributes() { echo $attributes; print_r($attributes); return $attributes; } ... }
Why even though I have written this colored codes, this colored commands didn't return any value, but this colored commands return the correct values.Code:$new_designer = new Designer($values); $a = $new_designer->getDesignerAttributes(); echo($a); print_r($a);
I hope people from the development team can help with this, and I need this help kinda fast, so pleeease if you have any reply, don't hesitate ok...
thanks guys




