My commented line is where my error is.
Ive tried a few other things such as $petField = new buildDropDownList("adopt", "AdoptTypeList");
I tried to see if i could hmm by-pass? the buildDropDownList and access the
buildAdoptTypeList($name) directly so I tried
$petField->add(new buildAdoptTypeList("test"));
$petField = new buildAdoptTypeList("test");
none seem to work. i dunno. any help would be apreaciated.
I can't seem to get an actual error besides " Internal Server Error 500" I can't seem to put error reporting on. I am not sure if mysidia has it turned off by default or its something else.
Code:
public function add(){
$mysidia = Registry::get("mysidia");
$document = $this->document;
$document->setTitle("TEST");
$explorerForm = new Form("addform", "add", "post");
$petField = new FieldSet("pet");
$petField->add(new Legend("Adding a Explore Pet"));
//$petField->add(new buildDropDownList("adopt", "AdoptTypeList"));
$petField->add(new Comment("Pet Chance:", TRUE, "b"));
$petField->add(new TextField("textPetPerc"));
$explorerForm->add($petField);
$myButton = new FieldSet("Test It");
$myButton->add(new Legend("required?"));
$myButton->add(new Button("Testing", "submit", "submit"));
$explorerForm->add($myButton);