Ejemplo n.º 1
0
 public function index()
 {
     self::$keyword = $_GET['keyword'];
     if (!isset($this->params[0])) {
         $this->params[0] = 0;
     }
     $page = (int) $this->params[0];
     return $this->model->get(self::$keyword, $page);
 }