protected function view($view = '')
 {
     if (!empty($this->layout)) {
         $this->data['content1'] = $this->PartialView($view, true);
         parent::View($this->layout);
     } else {
         parent::View($view);
     }
 }
예제 #2
0
파일: Home.php 프로젝트: recepuncu/mvc
 function Welcome()
 {
     $model = array('wel', 'come');
     return parent::View($model);
 }
예제 #3
0
파일: News.php 프로젝트: recepuncu/mvc
 public function Index()
 {
     $model = array('foo', 'bar');
     return parent::View($model);
 }