public function indexAction() { $this->_helper->layout->setLayout('mapedit'); $map = $this->_request->getParam('map'); if (!$map) { return; } $this->view->mapName = $map; $this->view->jsMatrix = json_encode(Svg_Map::createMapAdjacencyMatrix($map)); $this->view->mode = 'edit'; }
public function indexAction() { $map = $this->_request->getParam('map') ? $this->_request->getParam('map') : 'simple'; $this->view->mapName = $map; $this->view->jsMatrix = json_encode(Svg_Map::createMapAdjacencyMatrix($map)); }