darkcom, on 05 February 2012 - 08:50 AM, said:
"add generated controler to site/tree action, with pattern 'jun.' + model name + 'Grid', automatic site/tree action will be added in the next release"
could you please give me a sample about "site/tree" action file.
public function actionTree()
{
$data = "";
$data = "[{
text:'Entri Mims',
expanded: true,
children:[{
text: 'Mims',
id: 'jun.MimsGrid',
leaf: true
},{
text: 'Mims Detail',
id: 'jun.MimsDetailGrid',
leaf: true
},{
text: 'Satuan',
id: 'jun.SatuanGrid',
leaf: true
},{
text: 'Dosis',
id: 'jun.DosisGrid',
leaf: true
},{
text: 'Kategori',
id: 'jun.KategoriGrid',
leaf: true
},{
text: 'Pabrik',
id: 'jun.PabrikGrid',
leaf: true
}] },
{
text:'Spo',
expanded: true,
children:[{
text: 'Spo',
id: 'jun.SpoGrid',
leaf: true
}, {
text: 'Spo Detail',
id : 'jun.SpoDetailGrid',
leaf: true
}, {
text : 'Dpho',
id : 'jun.DphoGrid',
leaf : true
}, {
text : 'Jenis Obat',
id : 'jun.JenisObatGrid',
leaf : true
}
]
}, {
text: 'UW',
expanded: true,
children:[{
text: 'Proposal',
id: 'jun.ProposalGrid',
leaf: true
},{
text: 'Proposal Ke',
id: 'jun.ProposalKeGrid',
leaf: true
},{
text: 'Klasifikasi Detail',
id: 'jun.KlasifikasiDetailGrid',
leaf: true
},{
text: 'Manfaat Asuransi ',
id: 'jun.ManfaatAsuransiGrid',
leaf: true
},{
text: 'Other Info ',
id: 'jun.OtherInfoGrid',
leaf: true
},{
text: 'Klasifikasi Detail Manfaat',
id: 'jun.KlasfikasiDetailManfaatGrid',
leaf: true
}]
}, {
text: 'Setting',
expanded: true,
children:[{
text: 'Profile',
id: 'jun.KlasfikasiDetailManfaatGrid',
leaf: true
},{
text: 'Ubah Password',
id: 'jun.KlasfikasiDetailManfaatGrid',
leaf: true
}]
}]";
Yii::app()->end($data);
}
maaf baru liat

, maaf yooo ntu contohnya diatas nti kurang jelas aku tambahin lagi