When I access myadopts/add I get this error:
[spoiler]
its driving me crazy!!
[/spoiler]
Fatal error: Call to a member function setFlags() on a non-object in full_path_hidden/class_appcontroller.php on line 192;
So I added two functions.
myadopts.php
[/code]
my adoptsview.php
[spoiler]
its driving me crazy!!
[/spoiler]
Fatal error: Call to a member function setFlags() on a non-object in full_path_hidden/class_appcontroller.php on line 192;
So I added two functions.
myadopts.php
Code:
//sim edit
public function add(){
//die("EAT ME");
$mysidia = Registry::get("mysidia");
}
//end sim edit
[/code]
my adoptsview.php
Code:
//
// Sim Edit
//
public function add(){
$mysidia = Registry::get("mysidia");
$document = $this->document;
$document->setTitle("Do you want to eat me");
$document->add(new Comment("<br><br>Welcome earthlings...<br>"));
$eatForm = new Form("eaters", "eater", "post");
$eatForm->add(new Button("Eat me if you can", "submit", "submit"));
$document->add($eatForm);
}
//
// End Sim Edit
//