Why is is that I can echo the correct value when echoing $tempSeats but when I try and place the variable in the CButtonColumn 'url' field it does not display anything? I have tried numerous solutions to get the variable to show up in the url with no success. Am I missing something easy?
<?php $tempSeats = Yii::app()->getRequest()->getQuery('adult-list'); echo $tempSeats; $this->widget('zii.widgets.grid.CGridView', array( 'id'=>'my-list', 'dataProvider'=>$model->searchFlights(), 'filter'=>$model, 'columns'=>array( 'departTime', 'departLocation', 'departDay', 'arrivalTime', 'arrivalLocation', 'price', 'totalSeats', array( 'header'=>'Seats', 'value'=>'0', 'id'=>'adultSeats', ), /* 'allowDogs', */ array( 'class'=>'CButtonColumn', 'template'=>'{book}', 'buttons'=>array ( 'book' => array ( 'label'=>'Book Now', 'url'=>'$this->grid->controller->createUrl("/bookings/createBooking/flightID/$data->flightID/", array("tempSeats"=>$tempSeats))', ), ), ), ), )); ?>