Template integrated
[speedfreak] / Server / application / controllers / pages.php
diff --git a/Server/application/controllers/pages.php b/Server/application/controllers/pages.php
new file mode 100644 (file)
index 0000000..00e6507
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+class Pages_Controller extends Template_Controller {
+
+       public $template = 'pages/base'; //defaults to template but you can set your own view file
+
+       public $auto_render = TRUE; //defaults to true, renders the template after the controller method is done
+
+       public function __construct()
+       {
+               parent::__construct(); //necessary
+       }
+
+       public function index()
+       {
+               $this->template->title = 'Maemo application for car enthusiasts';
+               $this->template->header = 'Home';
+               $this->template->content = 'HOMEZ';
+       }
+}
\ No newline at end of file