public function IndexAction() { $Model = new Model_Uri(); $list = $Model->fetchList(); $this->getView()->assign('list', $list); $this->getView()->display('mock/index.html'); }
public function GenerateAction() { $Model = new Model_Uri(); $list = $Model->fetchList(); foreach ($list as $uri_id => $uri) { $ServiceGenerator = new \Service\Mock\Generator($uri_id); $ServiceGenerator->generate(); } $this->getView()->displayAjax("Generate Successfully."); }