I want to use the form_validation
on values other than $_POST
parameters. So for example i have this function in a controller
public function items($category=NULL, $id=NULL){
//how do i run $category and $id through form_validation
}
Here is a function someone posted on the CodeIgniter forums that uses the same validation rules as form_validation
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.