2013-01-08 4 views
0

내가 CButtonColumn은 다음과 같이 사용합니다사용자 정의 CButtonColumn

<?php $this->widget('zii.widgets.grid.CGridView', array(
      'id'=>'user-grid', 
      'dataProvider'=>$model->search(), 
      'filter'=>$model, 
      'pager' => array(
       'firstPageLabel' => '&lt;&lt;', 
       ), 
      'columns'=>array(
       'username', 
       'name', 
       'email', 
       'creationDate', 
       array(
         'class' => 'CButtonColumn', 
         'template' => '{change} {view}', 
         'button' => array(
          'change' => array(
           'url' => 'aaaaaaaa', 
          ), 
        ), 
       ) 
      ), 
     )); ?> 

그리고 난에 오류가있어 :

Use of undefined constant aaaaaaaa - assumed 'aaaaaaaa'

내가 바르게 CButtonColumn을 cusomize 수있는 방법을?

답변

0
'url'=>'Yii::app()->createUrl("your_controller/action")', 
+0

내가 다른 외부 페이지로 URL을 설정해야보십시오. http : // test.com/user/view/id/24와 같은 http 링크를 사용할 수 있습니까? – Chalist