/**
  * Returns the data model based on the primary key given in the GET variable.
  * If the data model is not found, an HTTP exception will be raised.
  * @param integer the ID of the model to be loaded
  */
 public function loadModel($id)
 {
     $model = eaAsset::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
<?php

$this->breadcrumbs = array('eaAssets' => array('index'), 'Manage');
$this->menu = array(array('label' => 'List eaAsset', 'url' => array('index')), array('label' => 'Create eaAsset', 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\t\t\$('.search-button').click(function(){\n\t\t\$('.search-form').toggle();\n\t\treturn false;\n});\n\t\t\$('.search-form form').submit(function(){\n\t\t\$.fn.yiiGridView.update('eaAsset-grid', {\n\t\tdata: \$(this).serialize()\n});\n\t\treturn false;\n});\n\t\t");
?>
<div class="page-header">
	<h1>Asset Management</h1>
</div>
<?php 
//echo CHtml::link('Advanced Search','#',array('class'=>'search-button'));
?>

<?php 
//$this->renderPartial('_search',array(
//'model'=>$model,
//));
?>

<?php 
$this->widget('bootstrap.widgets.BootGridView', array('id' => 'eaAsset-grid', 'dataProvider' => eaAsset::model()->search($id), 'itemsCssClass' => 'table table-striped table-bordered', 'template' => '{items}{pager}{summary}', 'columns' => array(array('class' => 'BootButtonColumn'), 'input_date', array('name' => 'category_id', 'value' => 'eaAssetCategory::model()->findByPk($data->category_id)->inventory_type'), 'periode_date', 'item', 'brand', 'type')));