implement saving of Quest answers in database
This commit is contained in:
parent
9a5e61ce93
commit
2429bb4c8f
10 changed files with 201 additions and 32 deletions
|
|
@ -83,10 +83,14 @@
|
|||
$wordcount = count(preg_split('/\s+/', $characterSubmission['text']));
|
||||
}
|
||||
|
||||
// Has Character already solved Quest?
|
||||
$solved = $this->Quests->hasCharacterSolvedQuest($questId, $characterId);
|
||||
|
||||
|
||||
// Pass data to view
|
||||
$this->set('submission', $characterSubmission);
|
||||
$this->set('wordcount', $wordcount);
|
||||
$this->set('solved', $solved);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue