summaryrefslogtreecommitdiffstats
path: root/application/classes/controller/home.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/classes/controller/home.php')
-rw-r--r--application/classes/controller/home.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/application/classes/controller/home.php b/application/classes/controller/home.php
index 7ec6e86..2e353a0 100644
--- a/application/classes/controller/home.php
+++ b/application/classes/controller/home.php
@@ -2,10 +2,9 @@
class Home_Controller extends Controller {
public function action_index(){
- foreach(ORM::factory('fairy')->with ('tree.protector','tree.flower.protector')->find_all() as $fairy) {
- echo $fairy->tree->protector->name;
-
- }
+ $view = View::get('home');
+ $view->message = 'Have fun coding!';
+ $this->response->body=$view->render();
}
}