Пишу такое правило:
Код: Выделить всё
'urlManager'=>array(
'useStrictParsing' =>true,
'urlFormat'=>'path',
'showScriptName'=>false,
'rules'=>array(
'contact' => 'site/contact',
),
),
Yii Unable to resolve the request "".
Такое чувство, что переменная pathInfo пустая, хотя она не должна быть пустой.
Отключаю ЧПУ, перехожу на страницу site.ru/index.php?r=site/contact - все ок.
htaccess как в справке:
Код: Выделить всё
AddDefaultCharset utf-8
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php