Create Login before view Index

Hi every one.

At first, i’m so sorry about my bad Eng :)

Then i have a trouble :expressionless:

I create a project but i want Login form will first appear. When user login success. Index’ll load. But i don’t know how do it.

Thanks all

Hic :( nobody can help me :(

do you have index.php in layouts?

Yes I have, but i want load login form before index.

  • change at the controller site.

    public function actionIndex() {

      $this->render('the view page ');