call action from view file

Hi,

I have two controllers: SiteController and UserController. UserController was generated by CRUD command and have actionList() method.

In the index.php file from view directory assigned to SiteController, I would like to call the action actionList() from UserController.

How can I do that? Need I create widget?

Answer :)

<?php echo Yii::app()->runController('user/list'); ?>

I think it's a bad design.

Views should not call controllers.

You probably actually need to make a widget