View Single Post
  #1  
Old 11-08-2016, 09:02 PM
ToshibaThecat ToshibaThecat is offline
Member
 
Join Date: Nov 2016
Posts: 2
Gender: Female
Credits: 1,551
ToshibaThecat is on a distinguished road
Default Level up and daycare not working

On my site http://lilkatz.mysidiahost.com/index the Level up and daycare isn't working anymore, It says "Fatal Error: Class LevelupController either does not exist, or has its include path misconfigured!"

The code thats in levelup.php is

<?php

use Resource\Collection\ArrayList;
use Resource\Utility\Curl;

class LevelupView extends View{

public function click(){
$mysidia = Registry::get("mysidia");
$document = $this->document;
$adopt = $this->getField("adopt");
$reward = $this->getField("reward")->getValue();
$document->setTitle("{$this->lang->gave} {$adopt->getName()} one {$this->lang->unit}");

$image = $adopt->getImage("gui");
$image->setLineBreak(TRUE);
$summary = new Division;
$summary->setAlign(new Align("center"));
$summary->add($image);
$summary->add(new Comment("{$this->lang->gave}{$adopt->getName()} one {$this->lang->unit}."));
$summary->add(new Comment($this->lang->encourage));
$summary->add(new Comment("<br> You have earned {$reward} {$mysidia->settings->cost} for leveling up this adoptable. "));
$summary->add(new Comment("You now have {$mysidia->user->getcash()} {$mysidia->settings->cost}"));
$document->add($summary);
}

public function siggy(){

}

public function daycare(){
$mysidia = Registry::get("mysidia");
$document = $this->document;
$document->setTitle($this->lang->daycare_title);
$document->addLangvar($this->lang->daycare, TRUE);

$daycare = $this->getField("daycare");
$adopts = $daycare->getAdopts();
$daycareTable = new Table("daycare", "", FALSE);
$daycareTable->setBordered(FALSE);
$total = $daycare->getTotalAdopts();
$index = 0;

for($row = 0; $row < $daycare->getTotalRows(); $row++){
$daycareRow = new TRow("row{$row}");
for($column = 0; $column < $daycare->getTotalColumns(); $column++){
$adopt = new OwnedAdoptable($adopts[$index]);
$cell = new ArrayList;
$cell->add(new Link("levelup/click/{$adopt->getAdoptID()}", $adopt->getImage("gui"), TRUE));
$cell->add(new Comment($daycare->getStats($adopt)));
$daycareCell = new TCell($cell, "cell{$index}");
$daycareCell->setAlign(new Align("center", "center"));
$daycareRow->add($daycareCell);
$index++;
if($index == $total) break;
}
$daycareTable->add($daycareRow);
}

$document->add($daycareTable);
if($pagination = $daycare->getPagination()) $document->addLangvar($pagination->showPage());
}
}
?>
Reply With Quote