admin [backend] directory problems

this is what my directory looks like:


cache

config/

       main.php

protected/

          commands/

          components/

          controllers/

          extensions/

          messages/

          models/

          runtime/

          yiic[text file]

          yiic.bat

          yiic.php

runtime/

themes/

index.php


admin/

     cache/

     config/

            main.php

     index.php

     protected/

               components/

               controllers/

               models/

               views/

     runtime/

but everytime i log out of my admin page [via button logout] i get this error…

That logout button calls an actionLogout… check there where are you redirecting…

@kael:

Why are you posting your questions to the Tips, Snippets and Tutorial section?

according to my site controller under the public function actionLogout


$this->redirect(Yii::app()->homeUrl . '/admin');

i’m redirecting to that url

and this is what the url on views/layout/main.php looks like


array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)



\

oh i’m sorry… where should i post my inquiries then?

Please use this section:

http://www.yiiframework.com/forum/index.php?/forum/29-general-discussion-for-yii-11x/

  • topic moved to General Discussion for Yii 1.1

Check the value of Yii::app()->homeUrl…