Property | Type | Description | |
---|---|---|---|
$layout | the default layout for the views. Defaults to '//layouts/column2', meaning using two-column layout. See 'protected/views/layouts/column2.php'. |
Method | Description | |
---|---|---|
accessRules ( ) : array | Specifies the access control rules. | |
actionAdmin ( ) | Manages all models. | |
actionAjaxGetSkus ( ) | ||
actionBulk ( ) | 批量操作 | |
actionCreate ( ) | Creates a new model. | |
actionDelete ( integer $id ) | Deletes a particular model. | |
actionGetItemSpec ( ) | ||
actionGetPropValues ( ) | ajax 成功后一般返回json数据 然后jquery读取出来 在写个function, 转为html | |
actionIndex ( ) | Lists all models. | |
actionList ( ) | Manages all models. | |
actionUpdate ( integer $id ) | Updates a particular model. | |
actionUpload ( ) | upload images | |
actionView ( integer $id ) | Displays a particular model. | |
filters ( ) : array | ||
loadModel ( $id ) | Returns the data model based on the primary key given in the GET variable. | |
loadModel ( $id ) : CActiveRecord | Returns the data model based on the primary key given in the GET variable. |
Method | Description | |
---|---|---|
performAjaxValidation ( $model ) | Performs the AJAX validation. |
public accessRules ( ) : array | ||
return | array | access control rules |
public actionCreate ( ) |
public actionDelete ( integer $id ) | ||
$id | integer | the ID of the model to be deleted |
public actionGetPropValues ( ) |
public actionUpdate ( integer $id ) | ||
$id | integer | the ID of the model to be updated |
public actionView ( integer $id ) | ||
$id | integer | the ID of the model to be displayed |
public loadModel ( $id ) |
public loadModel ( $id ) : CActiveRecord | ||
return | CActiveRecord |
protected performAjaxValidation ( $model ) |