Skip to content
Browse files

Replaced default view for controller

  • Loading branch information...
1 parent 3d9586d commit a1703cbc3d739b8fa8e7681bb57637b8b8cd6508 @Artazor Artazor committed May 14, 2012
Showing with 5 additions and 10 deletions.
  1. +5 −10 controller/view.php
View
15 controller/view.php
@@ -1,10 +1,5 @@
-<?print_r($this->args)?>
-<ul>
-<li><?$this['.']->put_as_current()?></li>
-<?if(isset($this['..'])):?>
-<li><?$this['..']->put_as_parent()?></li>
-<?endif?>
-<?foreach($this as $route=>$child):?>
-<li><?=$child->put_as_child()?></li>
-<?endforeach?>
-</ul>
+<?if($this->child):?>
+<?$this->child->put_view()?>
+<?else:?>
+<?$this->put_tiled()?>
+<?endif?>

0 comments on commit a1703cb

Please sign in to comment.
Something went wrong with that request. Please try again.