프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$belongsTo | The variable should be set with the pluralized lowercase name of the parent. i.e. 'products' |
메소드 | 설명 | |
---|---|---|
handleAction ( |
Function to handle the default behavior for all restful actions, from the CRUD operations to rendering the appropriate response based on the request format. |
protected handleAction ( |
||
$model | The model class that the controller is handling | |
$id | integer | The ID of the particular record in question IF the action requires it |
$parentData | array | The key / value data for identifying parent for nested resources |
$additionalAssigns | array | Array of additional data to be made available to the view |
리턴 | View | string | | string The rendered template, or JSON data |