mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
View class, refactoring
This commit is contained in:
1 parent
8d2af9181a
commit
63e7c95415
8 files changed
+104
-40
No files matched your search
@@ -3,12 +3,8 @@
|
||||
class ExampleController extends Controller{
|
||||
|
||||
public function index(){
|
||||
echo 'example';
|
||||
|
||||
// TODO:
|
||||
// - set view
|
||||
// - process POST variables
|
||||
// ...
|
||||
$this->view->title = 'Example title';
|
||||
$this->view->render('example.phtml');
|
||||
}
|
||||
|
||||
public function subpage(){
|
||||
|
||||
Reference in new issue
Block a user