public function renderList() { $tpl = static::loadView('ui.list.tpl'); $tpl->title = 'Welcome to Edge'; $tpl->list = ["one", "two", "three"]; return parent::render($tpl, ['title' => 'Edge MVC']); }
/** * Render the layout with the contents * of Application/Views/ui.index.tpl * @return mixed|string */ public function index() { $tpl = static::loadView('ui.index.tpl'); $tpl->title = 'Welcome to Edge'; return parent::render($tpl, ['title' => 'Edge MVC']); }