Mercurial > hg > extraction-interface
view controllers/home.php @ 52:94064f625650 extractapp
assign book_meta to NULL if it's empty
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 26 Mar 2015 16:23:33 +0100 |
parents | 886f43b26ee2 |
children |
line wrap: on
line source
<?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 Test() { $viewmodel = new HomeModel(); $this->ReturnView($viewmodel->Test(), true); } } ?>