diff --git a/src/View.php b/src/View.php index 8e5547c..32d3fcf 100755 --- a/src/View.php +++ b/src/View.php @@ -102,7 +102,7 @@ public function view($name, $data=null, $print=true) } $filename=ROOT.'app/view/'.$name.'.php'; $data['data']=$data; - $data['view']=$view; + $data['view']=$this; $data['viewName']=$name; if (file_exists($filename)) { extract($data);