hide map menu button if no map is set for the Seminary

This commit is contained in:
oliver 2015-05-17 20:53:24 +02:00
commit 36cb0180cf
2 changed files with 13 additions and 1 deletions

View file

@ -20,6 +20,12 @@
*/
class SeminarymenuController extends \hhu\z\Controller
{
/**
* Required models
*
* @var array
*/
public $models = array('map');
@ -46,6 +52,12 @@
*/
public function index()
{
// Get map of Seminary
$map = $this->Map->getMapOfSeminary(\hhu\z\controllers\SeminaryController::$seminary['id']);
// Pass data to view
$this->set('map', $map);
}
}