Hello All,
I have built a small class in which I have an Array to which I would like to pass a variable.
This is the class:
class page
{
// These are the attributes for the page class
var $house
var $buttons = array( 'Homes' => 'homes.php?".$this->house."_homes'
);
}
And this is how I intended to pass the variable:
The other script consrtucts the page class and passes it the
$homepage = new page($house);
But what I get from this button when I place the mouse over is:
/SERVERNAME/homes.php?".$this->house."_homes
Obviously it cannot parse the variable....
I have tried it with single, double, and no quotes just to rule out a quote-related error...
Any thoughts on how I can pass the value to the Array?