Hi, so i have my gridview ->
<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'property-advsearch-grid',
'dataProvider'=>$model->advsearch(),
'pager' => array('class' => 'CLinkPager', 'header' => ''),
'columns'=>array(
/////////////////////// other columns here ///
array(
'name' => 'Property Name',
'value' =>" ((\$data->sale_active) ? CHtml::link(\$data->sale_active->RefName,\$data->sale_active->GetLink())
: '')",
'type'=>'html',
),
/////////////////////// other columns here ///
and when i click Property Name Chtml Link it will get the link GETLINK ( RefName will Get a id plus string ) in a PropertySale Model ->
public function GetLink()
{
return ($this->property->type->slug && $this->property->slug)?Yii::app()->createUrl('//propertySale/'.$this->property->type->slug.'/'.$this->property->slug):Yii::app()->createUrl('//propertySale/details', array('id'=>$this->ID));
}
and when i click on the link cgridview collumn field it renders me the all page and i want just a renderpartial in the section that im in ,
by the way :
Controller -> Property -> render "view" -> a button that renders "other view of a diffrent controller "(that have cgridview in which it gets the data from "X Model that extendes Property model")
I have been Working on this the all week need this ASAP Thanks