improve map feature by using its own database table and model

This commit is contained in:
oliver 2015-04-16 11:04:01 +02:00
commit e971e3677a
5 changed files with 85 additions and 7 deletions

View file

@ -24,7 +24,7 @@
*
* @var array
*/
public $models = array('seminaries');
public $models = array('seminaries', 'map');
/**
* User permissions
*
@ -58,9 +58,13 @@
// Get Seminary
$seminary = $this->Seminaries->getSeminaryByUrl($seminaryUrl);
// Get map
$map = $this->Map->getMapOfSeminary($seminary['id']);
// Pass data to view
$this->set('seminary', $seminary);
$this->set('map', $map);
}
}