Пожалуйста помогите с рестами.
Установил advanced версию. Затем все делал как тут http://www.yiiframework.com/doc-2.0/gui ... start.html
Создал в frontend\controllers\UserController.php
Код: Выделить всё
<?php
namespace frontend\controllers;
use yii\rest\ActiveController;
class UserController extends ActiveController
{
public $modelClass = 'frontend\models\User';
}
Код: Выделить всё
...
'urlManager' => [
'enablePrettyUrl' => true,
'enableStrictParsing' => true,
'showScriptName' => false,
'rules' => [
['class' => 'yii\rest\UrlRule', 'controller' => 'user'],
],
],
'request' => [
'parsers' => [
'application/json' => 'yii\web\JsonParser',
]
],
...
В результате на странице вижу
Not Found (#404)
Page not found.
The above error occurred while the Web server was processing your request.
Please contact us if you think this is a server error. Thank you.
Подскажите, что делать.