Render View From Different Controller

Hi.

I just wonder is it possible to render a view from a different controller?

for example, I’m in a SiteController, actionIndex and I want to render view from views/user/index.php

I tried this but doesn’t work.




// This function is in SiteController

public function actionIndex()

{

$this->render('/user/index');

}



Try


$this->render('../user/index');

Should work

You can also use:


$this->render('//user/index');