Okay I got it lol. Well, in so far as the page works, there's no information displayed but it worked for the owner and for another user viewing it. If you want help with adding information, especially different if the owner is viewing it or not, just let me know and I can try to cobble together an actual profile
Pulled an all nighter as I couldn't sleep so I am tiirreeddd lol. But this might be a good starting point for you. Change 'public function
profile' to '
publicprofile' if you want it back to that.
levelupview:
PHP:
public function profile(){
$mysidia = Registry::get("mysidia");
$document = $this->document;
$adopt = $this->getField("adopt");
$document->setTitle("Viewing {$adopt->getName()}'s Profile");
$image = $adopt->getImage(Model::GUI);
$image->setLineBreak(TRUE);
$profile = new Division;
$profile->setAlign(new Align("center"));
$profile->add($image);
$profile->add(new Comment("Viewing Profile Of This Adopt!!!"));
$profile->add(new Comment("Profile info here"));
$document->add($profile);
}
levelupcontroller:
PHP:
public function profile($aid){
$mysidia = Registry::get("mysidia");
$this->adopt = new OwnedAdoptable($aid);
$this->setField("adopt", $this->adopt);
}