PHP Class yii\rest\ViewAction
For more details and usage information on ViewAction, see the
guide article on rest controllers.
显示文件
Open project: yiisoft/yii2
Class Usage Examples
Public Methods
Method |
Description |
|
run ( string $id ) : yii\db\ActiveRecordInterface |
Displays a model. |
|
Method Details
public run ( string $id ) : yii\db\ActiveRecordInterface |
$id |
string |
the primary key of the model. |
return |
yii\db\ActiveRecordInterface |
the model being displayed |