Mercurial > hg > extraction-interface
comparison develop/classes/basecontroller.php @ 14:ac77748bb813
- Load regex files based on current topic. Only show the regex in this topic.
To do that, it needs to lookup a table called 'topic_regex_relation' which has the relation of topic and regex filename in filesystem.
- Extractapp UI with some layout modification: button, popup window, responsive (by bootstrap now). It was just for quick prototyping.
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 19 Feb 2015 11:07:27 +0100 |
parents | 63e08b98032f |
children |
comparison
equal
deleted
inserted
replaced
13:cc36a20a68ab | 14:ac77748bb813 |
---|---|
18 | 18 |
19 protected function ReturnView($viewmodel, $fullview) { | 19 protected function ReturnView($viewmodel, $fullview) { |
20 $viewloc = 'views/' . get_class($this) . '/' . $this->action . '.php'; | 20 $viewloc = 'views/' . get_class($this) . '/' . $this->action . '.php'; |
21 if ($fullview) { | 21 if ($fullview) { |
22 require('views/maintemplate.php'); | 22 require('views/maintemplate.php'); |
23 require($viewloc); | |
23 } else { | 24 } else { |
24 require($viewloc); | 25 require($viewloc); |
25 } | 26 } |
26 } | 27 } |
28 | |
29 protected function ReturnView_localtest($viewmodel, $fullview) { | |
30 $viewloc = 'views/' . get_class($this) . '/' . $this->action . '.php'; | |
31 if ($fullview) { | |
32 require('views/maintemplate_local.php'); | |
33 require($viewloc); | |
34 } else { | |
35 require($viewloc); | |
36 } | |
37 } | |
27 } | 38 } |
28 ?> | 39 ?> |