When I do that I get this error..
Catchable fatal error: Argument 1 passed to Sidebar::setDivision() must be an instance of GUIComponent, null given, called in /home/atrocity/public_html/classes/class_sidebar.php on line 235 and defined in /home/atrocity/public_html/classes/class_sidebar.php on line 62
this is what my line 62-68 looks like
Code:
protected function setDivision(GUIComponent $module){
if(!$this->division){
$this->division = new Division;
$this->division->setClass("sidebar");
}
$this->division->add($module);
}
And this is line 235
Code:
$this->setDivision($this->FavPetSB);
}