How to config the default authenticate page

Use yiic to generate a defalt web site, then a access a page that need authentication, this time the page will automatic redirect to the site/login.

but I create a new login page, for example manage/login, How can I make the authenticate page to my page(manage/login)?

Thank you!

Edit your main config file:




        'components'=>array(

            'user'=>array(

                'loginUrl'=>array('manage/login'),

                // enable cookie-based authentication.

                'allowAutoLogin'=>true,

            ),



That’s what I want!

Thank you.