文件上传动作
用法
// add action to controller
public function actions()
{
return array(
// ...
'upload' =>array(
'class' => 'ext.yiiext.actions.fileUpload.EFileUploadAction' ,
// The data model which contains file attribute with validation rules.
'model' => null ,
// The model attribute.
'attribute' => null ,
// The input field name. This must be resolve from model and attribute.
2021-06-20 21:03:27
6KB
PHP
1