我有客户端发布的表单数据,我想在运行表单值之一之前对其进行操作$this->form_validation->run()
。
这可能吗
即类似的东西;
//Get user form inputs
$input = $this->input->post();
//generate slug - my custom code
$input['slug'] = sf_generate_slug($input['slug']);
if ($this->form_validation->run()) {
...