use NotificationComponent to notify of new Achievements and Level-ups and show them in HTML-layout view (Issue #128)

This commit is contained in:
coderkun 2014-04-25 22:46:10 +02:00
commit 72ab7505be
4 changed files with 61 additions and 4 deletions

View file

@ -19,6 +19,12 @@
*/
class HtmlController extends \hhu\z\Controller
{
/**
* Required components
*
* @var array
*/
public $components = array('notification');
@ -52,6 +58,9 @@
$this->set('loggedUser', IntermediateController::$user);
$this->set('loggedSeminary', SeminaryController::$seminary);
$this->set('loggedCharacter', SeminaryController::$character);
// Set notifications
$this->set('notifications', $this->Notification->getNotifications());
}
}