OKAY... I have been at this from every angle I can think of.
I have 3 stats- strength, speed, and stamina - because I want to implement an npc battle system. They're in the owned_adoptables table.... Yet any time I try to reference one of them, it bugs out my site and leaves me with a white screen.
My Code:
If I try to add $str = $adopt->getStrength(); or $str = $adopt->getField("strength"); it messes up the entire page. I don't even have to call it in the code. Simply defining the variable makes it go funky. Any help would be GREATLY appreciated.
I have 3 stats- strength, speed, and stamina - because I want to implement an npc battle system. They're in the owned_adoptables table.... Yet any time I try to reference one of them, it bugs out my site and leaves me with a white screen.
My Code:
PHP:
public function publicprofile(){
$mysidia = Registry::get("mysidia");
$document = $this->document;
$adopt = $this->getField("adopt");
$document->setTitle("Viewing {$adopt->getName()}'s Profile");
$ownername= $adopt->getOwner();
//... It continues but this is where I define my variables.
If I try to add $str = $adopt->getStrength(); or $str = $adopt->getField("strength"); it messes up the entire page. I don't even have to call it in the code. Simply defining the variable makes it go funky. Any help would be GREATLY appreciated.