Today I found out how to pass variable from view to layout ..
using these
Yii::app()->params['your_awesome_name'] = ' Awesome Name Here ';
and to access it , it will be like ..
$awesome_name = Yii::app()->params['your_awesome_name'];
$awesome_name = $awesome_name ? $awesome_name: "Default Awesome Name Here";
No comments:
Post a Comment