makro
(Makro76)
1
Hi!!
I’m developing using Yii 1.1b… it’s simply amazing
I’m trying to use zii extensions like CJuiTabs.
I can’t understand if is there a way to write panels content outside the panels array and without use a file per tab (renderPartial).
something like
<?php $this->beginWidget('zii.widget.ui.CJuiTabs'); ?>
//php code for tab 1
//php code for tab 2
//php code for tab 3
<?php $this->endWidget('zii.widget.ui.CJuiTabs'); ?>
It is like jui extensions… that is clean to write
Any help?
Thanks in advance,
Marco
qiang
(Qiang Xue)
2
Unfortunately this is not supported because to define a tab, you need to insert at two places: one for the tab title and one for the tab content.
jonah
(Poppitypop)
3
makro
(Makro76)
4
Thanks,
I’m going to have a look at CClipWidget.
I think it should be nice to have the possibility to create panels/tabs with code like http://www.yiiframework.com/extension/jui/ or pogostick extension
Anyway I can create a new view file for the tab panels with some if/switch inside… and then call some renderPartial with parameter from the main file…
Marco
makro
(Makro76)
5
CClipWidget did the trick!
It could be a solution, now I can continue with the development and see.
Thanks!
Marco
Spyros
(Spyros)
6
Hi,
Is there a way to define the functions for the sortable start/stop events?
<?php
$this->widget('zii.widgets.jui.CJuiSortable', array(
....
'options'=>array(
'stop:function(event,ui){...}',
),
...
));
?>
won’t work
qiang
(Qiang Xue)
7
Use this:
<?php
$this->widget('zii.widgets.jui.CJuiSortable', array(
....
'options'=>array(
'stop'=>'js:function(event,ui){...}',
),
...
));
?>