Exemplo n.º 1
0
 public function IndexAction()
 {
     $Model = new Model_Uri();
     $list = $Model->fetchList();
     $this->getView()->assign('list', $list);
     $this->getView()->display('mock/index.html');
 }
Exemplo n.º 2
0
 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.");
 }