![]() |
| Home Community Mys-Script Creative Off-Topic |
|
|||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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:
//sim edit
public function add(){
//die("EAT ME");
$mysidia = Registry::get("mysidia");
}
//end sim edit
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
//
__________________
|
| Thread Tools | |
| Display Modes | |
|
|
What's New? |
What's Hot? |
What's Popular? |