示例#1
0
 /** 
  * Removes the param.
  */
 public function delete_param()
 {
     $this->check_authorization();
     $id = $this->get_arg('id', 0);
     $param = Param::find($id);
     $param->delete();
     return new Redirect('/edit_category?id=' . $param->category_id);
 }