put summary displaying num-total on bottom

Hi, i’m trying to put the summary after the table.

I found this function “renderSummary()” on yii’s framework, but i don’t know how to call it only after the table is rendered, i really need to change it for the new layout.

It’s possibly a stupid thing to do, but i’m not being so successful, someone can help me?

Thanks

I assume you are talking about one of the Zii widgets e.g. CGridView.

Just rearrange the template string.

/Tommy

Humm, how i do that, i cannot found the string where i set the order, can you tell me witch file is?

Assuming you are using the Gii-generated grid it’s protected/views/<controllerID>/admin.php.




  $this->widget('zii.widgets.grid.CGridView', array(

    ...

    'template' => '...',

    ...

  );



or for global scope, use the predefined CWidgetFactory instance (in the config file protected/config/main.php).




'components' => array(

  ...

  'widgetFactory' => array(

    'widgets' => array(

      'CGridView' => array(

        'template'=>'...',

      ),

    ),

  ),

  ...

),

...



(should work)

/Tommy

Thanks, now i understood how to do that… i was trying to call the method in another place, it’s easier than it sounds…

Thanks a lot