Property | Type | Description | |
---|---|---|---|
$belongsTo | The variable should be set with the pluralized lowercase name of the parent. i.e. 'products' |
Method | Description | |
---|---|---|
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 |
return | View | string | | string The rendered template, or JSON data |