public function run($datas = array(), $showHtml = true) { parent::run(); //Get list $list = $this->db->select('id, title')->from('tbl_example AS e')->where("is_public")->params(array(':is_public' => 1))->order('id DESC')->limit(2)->queryAll(); return $this->render('lastest', array('list' => $list), $showHtml); }
public function run($datas = array(), $showHtml = true) { parent::run(); return $this->render('lastest', array('date' => 'Ngày ' . date('Y-m-d H:i:s')), $showHtml); }