protected function view($view = '') { if (!empty($this->layout)) { $this->data['content1'] = $this->PartialView($view, true); parent::View($this->layout); } else { parent::View($view); } }
function Welcome() { $model = array('wel', 'come'); return parent::View($model); }
public function Index() { $model = array('foo', 'bar'); return parent::View($model); }