PHP Class yii\rest\ViewAction

For more details and usage information on ViewAction, see the guide article on rest controllers.
Since: 2.0
Author: Qiang Xue ([email protected])
Inheritance: extends Action
Datei anzeigen Open project: yiisoft/yii2 Class Usage Examples

Public Methods

Method Description
run ( string $id ) : yii\db\ActiveRecordInterface Displays a model.

Method Details

run() public method

Displays a model.
public run ( string $id ) : yii\db\ActiveRecordInterface
$id string the primary key of the model.
return yii\db\ActiveRecordInterface the model being displayed