In function actionIndex of SiteController, i want to send data to file main.php in folder layouts. somebody can help me?
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.