Example #1
0
 /**
  * get all tag
  * 
  * @method get
  * @route /tag/all
  */
 public function allAction()
 {
     $data = '';
     $sSearch = '';
     $get = $this->getParams();
     if (isset($get['search'])) {
         $sSearch = trim($get['search']);
         $sSearch = str_replace('"', '', $sSearch);
     }
     $data = TagsRepository::getAllList($sSearch, 1);
     $this->router->response()->json($data);
 }