View Single Post
  #1  
Old 01-20-2016, 09:12 PM
FounderSim FounderSim is offline
Member
 
Join Date: Sep 2014
Posts: 65
Gender: Male
Credits: 7,914
FounderSim is on a distinguished road
Default Fatal error: Call to a member function setFlags() on a non-object in /class_appcontroller.php

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
[/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
	//
__________________
Reply With Quote