Mercurial > hg > extraction-interface
diff develop/controllers/home.php @ 26:579f03f8bee5
merge table books_info into table books (execute Home/Test)
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 03 Mar 2015 10:33:42 +0100 |
parents | 63e08b98032f |
children |
line wrap: on
line diff
--- a/develop/controllers/home.php Mon Mar 02 16:16:54 2015 +0100 +++ b/develop/controllers/home.php Tue Mar 03 10:33:42 2015 +0100 @@ -1,12 +1,18 @@ <?php class Home extends BaseController { + + public function __construct($action, $urlvalues, $postdata){ + parent::__construct($action, $urlvalues, $postdata); + $this->viewmodel = new ExtractappModel(); + } + protected function Index() { $viewmodel = new HomeModel(); $this->ReturnView($viewmodel->Index(), false); } - protected function TestAction() { + protected function Test() { $viewmodel = new HomeModel(); $this->ReturnView($viewmodel->Test(), true); }