Property | Type | Description | |
---|---|---|---|
$layout | the name of the layout to be applied to the views. This will be assigned to {@link CController::layout} before the view is rendered. Defaults to null, meaning the controller's layout will be used. If false, no layout will be applied. | ||
$modelClass | Model class for action. | ||
$modelScenario | model scenario | ||
$returnUrl | url for return after success create. If null, action will redirect on current page. | ||
$successMessage | message will be displayed if model was save successfully | ||
$view | the name of the view to be rendered. |
Method | Description | |
---|---|---|
onAfterRender ( CEvent $event ) | Raised right after the action invokes the render method. | |
onBeforeRender ( CEvent $event ) | Raised right before the action invokes the render method. | |
run ( ) |
Method | Description | |
---|---|---|
getSuccessMessage ( ) |
public onAfterRender ( CEvent $event ) | ||
$event | CEvent | event parameter |
public onBeforeRender ( CEvent $event ) | ||
$event | CEvent | event parameter |
public $layout |
public $returnUrl |
public $successMessage |