hide map menu button if no map is set for the Seminary
This commit is contained in:
parent
1f1d91850e
commit
36cb0180cf
2 changed files with 13 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue