Without pretty url route has view http://192.168.100.5/index.php?r=tweet/statistic&from=20160320&to=20160325
and it`s work well.
As docs say when 'enablePrettyUrl' => true
/tweet
call default action - and it`s work well also
But for other actions route should be /tweet/statistic
. But there is 404 error.
How i can call app\controllers\TweetController actionStatistic() in this case?
added: i use basic template
'urlManager' => [
'enablePrettyUrl' => true,
'enableStrictParsing' => true,
'showScriptName' => false,
'rules' => [
['class' => 'yii\rest\UrlRule',
'controller' => 'tweet'],
'GET tweet/statistic' => 'tweet/statistic'
],
],
when i try curl request for http://192.168.100.5/tweet/statistic
HTTP/1.1 404 Not Found
If 'enablePrettyUrl' => false
and http://192.168.100.5/index.php?r=tweet/statistic"
it`s work well