|
- $config = array(
- 'error_prefix'=>'<div class="alert alert-danger alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>',
- 'error_suffix'=>'</div>',
- 'tutor/add' => array(
- array(
- 'field' => 'tutor_name',
- 'label' => '姓名',
- 'rules' => 'required'
- ),
- array(
- 'field' => 'tutor_sex',
- 'label' => '性别',
- 'rules' => 'required|integer',
- 'errors' => array(
- 'required' => '请选择%s.',
- 'integer' =>'非法输入'
- ),
- ),
- array(
- 'field' => 'tutor_position',
- 'label' => '职位',
- 'rules' => 'required|max_length[50]'
- ),
- array(
- 'field' => 'tutor_summary_s',
- 'label' => '简介',
- 'rules' => 'required|max_length[80]'
- ),
- array(
- 'field' => 'tutor_summary_l',
- 'label' => '详细介绍',
- 'rules' => 'required|max_length[200]'
- ),
- array(
- 'field' => 'tutor_photo',
- 'label' => '导师照片',
- 'rules' => 'callback_check_upload_pic'
- )
- )
- );
复制代码
如上代码,check_upload_pic这个函数应该卸载哪里CI 才能正确调用啊。 我试过好多地方都不行 |
|