Controller Send Data To File Main.php In Folder Layouts

In function actionIndex of SiteController, i want to send data to file main.php in folder layouts. somebody can help me?

Which data specifically? A simple solution is to make it available in your base Controller class and access it with Yii::app()->controller->yourProperty.