Quote:
Originally Posted by Fox
Here it is. I'm also trying to figure out how to put a button in on the lvl up page (you've fed blah blah and earned this much cash) that links to the public profile as well as it's only available if you've already fed them.
|
OK, I found the problem, and it looks like it was a mistake I made in the original.
Where it says
PHP Code:
if($adopt->hasNextLevel()){
$nextLevel = $adopt->getNextLevel();
Add a new line after it, and put };
Then go down to where it says:
PHP Code:
$document->add(new Comment("<a class='btn btn-sm btn-info' href='../../levelup/click/{$adopt->getAdoptID()}'><i class='fa fa-paw'></i> Feed</a>"));
};
}
And remove the last }
That should fix your problem.