how to "put" data into the second column in the column2-layout? I have in column2.php in the second column put a widget. Widget has some parameteres which I would like to set dynamically from controller (e.g. each controller/action could put different ones). What is the best way to achieve this?
I think the easiest way is to declare a new property in the controller :
class myController extends Controller {
public $foo;
public function index() {
$this->foo='bar';
$this->render('index');
}
}
and of course, in the column2:
<?php echo $this->foo;?>