public function renderModalFormAction() { $view = new ViewModel(); $id = $this->params()->fromQuery('id', 'add'); $view->id = $id; return $view; }
info at phpclasses dot org