Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Customers extends DPortlet {
- protected function renderContent(){
- //echo 'Blogs Content';
- $model = new Customer('search');
- if(isset($_GET['Customer']))
- $model->attributes = @$_GET['Customer'];
- $this->widget('RestrictedGridView', array(
- 'dataProvider' => $model->search(),
- 'filter' => $model,
- 'columns' => array(
- /* 'id', */
- array(
- 'name' => 'name',
- 'type' => 'raw',
- 'value' => 'CHtml::link($data->name, Yii::app()->createUrl("crm/customer/view",array("id"=>$data->id)))',
- ),
- /*array(
- 'class' => 'bootstrap.widgets.TbButtonColumn',
- ),*/
- )));
- }
- protected function getTitle() {
- return 'Customers';
- }
- protected function getClassName() {
- return __CLASS__;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement