For some reason, since I’ve enabled the urlManager, not I can’t see to get /site/logout/ or /logout/ to work.
Do I need more coffee or is there something awry here? Here’s all pertinent info:
.htaccess (maybe it might apply? i doubt it)
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
main.cfg
// application components
'components'=>array(
'assetManager' => array(
'linkAssets' => true,
),
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
),
'request'=>array(
'baseUrl' => "http://google.com"
),
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName'=>false,
'rules'=>array(
'<action:(login|logout|about)>' => 'site/<action>',
'gii'=>'gii',
'gii/<controller:nw+>'=>'gii/<controller>',
'gii/<controller:nw+>/<action:nw+>'=>'gii/<controller>/<action>',
'<controller:nw+>/<action:nw+>'=>'<controller>/<action>',
),
),
Pardon the weird formatting from c/p from Coda. Not sure why it did that.
My apologies if its something obvious