comparison 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
comparison
equal deleted inserted replaced
25:4b6d2d7e706e 26:579f03f8bee5
1 <?php 1 <?php
2 2
3 class Home extends BaseController { 3 class Home extends BaseController {
4
5 public function __construct($action, $urlvalues, $postdata){
6 parent::__construct($action, $urlvalues, $postdata);
7 $this->viewmodel = new ExtractappModel();
8 }
9
4 protected function Index() { 10 protected function Index() {
5 $viewmodel = new HomeModel(); 11 $viewmodel = new HomeModel();
6 $this->ReturnView($viewmodel->Index(), false); 12 $this->ReturnView($viewmodel->Index(), false);
7 } 13 }
8 14
9 protected function TestAction() { 15 protected function Test() {
10 $viewmodel = new HomeModel(); 16 $viewmodel = new HomeModel();
11 $this->ReturnView($viewmodel->Test(), true); 17 $this->ReturnView($viewmodel->Test(), true);
12 } 18 }
13 19
14 20