Код: Выделить всё
{
"name": "Not Found",
"message": "Object not found: 123",
"code": 0,
"status": 404,
"type": "yii\\web\\NotFoundHttpException"
}
Код: Выделить всё
class ArticleController extends ActiveController {
public $modelClass = Article::class;
public function actionPing() {
throw new NotFoundHttpException('test');
}
}