Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Replaced default view for controller

  • Loading branch information...
commit a1703cbc3d739b8fa8e7681bb57637b8b8cd6508 1 parent 3d9586d
@Artazor Artazor authored
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?>
Please sign in to comment.
Something went wrong with that request. Please try again.