esler
(Alex Caldas)
December 21, 2011, 8:44pm
1
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
tri
(tri - Tommy Riboe)
December 21, 2011, 10:34pm
2
I assume you are talking about one of the Zii widgets e.g. CGridView.
Just rearrange the template string.
/Tommy
esler
(Alex Caldas)
December 21, 2011, 10:45pm
3
Humm, how i do that, i cannot found the string where i set the order, can you tell me witch file is?
tri
(tri - Tommy Riboe)
December 21, 2011, 11:00pm
4
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
esler
(Alex Caldas)
December 21, 2011, 11:24pm
5
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