![]() |
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()); } } ?> |
If this was in your levelup.php file, then it has the wrong code in it. It should have this:
PHP Code:
|
Try reuploading levelup.php and view/levelupview.php and see if it fixes your problem.
|
All times are GMT -5. The time now is 07:43 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.