PHP Class yupe\components\actions\CreateAction

Inheritance: extends CActio\CAction
Show file Open project: yupe/yupe

Public Properties

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.

Public Methods

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 ( )

Protected Methods

Method Description
getSuccessMessage ( )

Method Details

getSuccessMessage() protected method

protected getSuccessMessage ( )

onAfterRender() public method

Raised right after the action invokes the render method.
public onAfterRender ( CEvent $event )
$event CEvent event parameter

onBeforeRender() public method

Event handlers can set the {@link CEvent::handled} property to be true to stop further view rendering.
public onBeforeRender ( CEvent $event )
$event CEvent event parameter

run() public method

public run ( )

Property Details

$layout public property

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.
public $layout

$modelClass public property

Model class for action.
public $modelClass

$modelScenario public property

model scenario
public $modelScenario

$returnUrl public property

url for return after success create. If null, action will redirect on current page.
public $returnUrl

$successMessage public property

message will be displayed if model was save successfully
public $successMessage

$view public property

the name of the view to be rendered.
public $view