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
Afficher le fichier Open project: yiisoft/yii2 Class Usage Examples

Méthodes publiques

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

Method Details

run() public méthode

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