Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7559459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:38:38+00:00 2026-05-30T12:38:38+00:00

When I am going to my application, the page is redirect to the index

  • 0

When I am going to my application, the page is redirect to the index page in Yii.

As per requirement, I want to redirect to the login page of the user module just like /user/login.

So for doing that I have changed the sitecontroller code index to user/login, but it showed an error.

Can some one tell me how to redirect the user/login page by default instead of index page? Any help and suggestions will be highly appreciable.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T12:38:39+00:00Added an answer on May 30, 2026 at 12:38 pm

    Check this thread on Yii framework forum.

    Copy/paste of the answer (by jodev):

    No need to extend anything. All you have to do is open up
    protected/config/main.php and add the following to the config array:

    return array(
        'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
        'name' => 'My application',
        'defaultController' => 'myController/myAction', // <--- add this line and replace with correct controller/action
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my application after login I am going into home page. But from home
How do I stop my application from going back when the user clicks on
HI, In my application i am using session so that if user login the
i want to add vibration and a play music in my application home page
My application is set up to always redirect to a login screen. The login
I want to send SSRS report field as querystring paramater to my application page.
I'm trying implement a custom login page to use in my JSF 2.0 application.
I've recently taken to doing a header() redirect (to the same page) after certain
I've got a C# application going that needs to send out an html email
In my application there are going to be lots of users, over 500. They

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.