Quote
ext js scafolding extension yii extension for generating extjs admin interface
#21
Posted 03 July 2012 - 01:51 AM
#22
Posted 03 July 2012 - 02:50 AM
Quote
keluar error kayak diatas, setelah bikin giixcrudjs, trus dicoba / try it now... kenapa ya? mohon masukannya
#23
Posted 03 July 2012 - 03:15 AM
die(), on 03 July 2012 - 02:50 AM, said:
itu donlod nya lengkap ga kang? trus susunan folder nya sudah mengikuti ketentuan yg ada di extension page?
try link below for simple step by step instruction
http://www.yiiframew...post__p__134381
#24
Posted 03 July 2012 - 03:34 AM
Storenya, dah dapet...
#25
Posted 03 July 2012 - 03:44 AM
die(), on 03 July 2012 - 03:34 AM, said:
Storenya, dah dapet...
itu udah jadi, tinggal tambah sidebarnya aja kang, jadi nanti begitu side barnya di klik keluar grid nya, misal si akang generate model user n crud nya, di tambah di site tree action nya jun.userGrid, contoh liat di bawah
add generated controler to site/tree action, with pattern 'jun.' + model name + 'Grid', automatic site/tree action will be added in the next release
$data = "[{ text:'Entri Mims', expanded: true, children:[{ text: 'Mims', id: 'jun.MimsGrid', leaf: true },{ text: 'your model label', id: 'jun.{model name}Grid', leaf: true }, ... }]";
#26
Posted 03 July 2012 - 04:03 AM
hening malam, on 03 July 2012 - 03:44 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
$data = "[{ text:'Entri Mims', expanded: true, children:[{ text: 'Mims', id: 'jun.MimsGrid', leaf: true },{ text: 'your model label', id: 'jun.{model name}Grid', leaf: true }, ... }]";
waduh, sedikit lagi dong, bisa dijelaskan detailnya kang, step by step.. maklum newbie yeuuhh.. he

Maksudnya gini kang? ini code dari application.controllers.SiteController
Quote
{
$data = "[{
text:'Entri Mims',
expanded: true,
children:[{
text: 'Mims',
id: 'jun.MimsGrid',
leaf: true
},{
text: 'User,
id: 'jun.MUserGrid',
leaf: true
},
...
}]";
return $data;
}
#27
Posted 03 July 2012 - 04:39 AM
die(), on 03 July 2012 - 04:03 AM, said:

Maksudnya gini kang? ini code dari application.controllers.SiteController
si akang generate model apa? tinggal ganti aja yg jun.mimsGrid jadi jun.{nama model yg di generate}Grid
mungkin maksudnya begini kang
text: 'User, id: 'jun.UserGrid', leaf: true
#28
Posted 03 July 2012 - 04:43 AM
hening malam, on 03 July 2012 - 04:39 AM, said:
mungkin maksudnya begini kang
text: 'User, id: 'jun.UserGrid', leaf: true
iya, nama modelnya MUser kang. trus itu kode nya disimpen dimana? di controllers/SiteController.php actionTree bukan?
#29
Posted 03 July 2012 - 04:59 AM
Quote
jun.TreeUi = Ext.extend(Ext.tree.TreePanel, {
title: 'Sidebar',
useArrows:true,
region: 'west',
split: true,
visible: true,
//collapsible: false,
rootVisible: true,
floatable: true,
dataUrl:'http://localhost/Cater/index.php?r=site/tree',
width: 240,
initComponent: function() {
this.root = {
text: 'Menu'
};
/*
this.loader = {
};*/
jun.TreeUi.superclass.initComponent.call(this);
}
});
cuma muncul root nya aja / menu ... yg node user nya ga ada... Hmmm

#30
Posted 03 July 2012 - 05:03 AM
die(), on 03 July 2012 - 04:59 AM, said:
cuma muncul root nya aja / menu ... yg node user nya ga ada... Hmmm

itu di comment aja yg di sidebar js nya mas karena di app.js nya ada ini
jun.sidebar = new jun.TreeUi({ dataUrl:'index.php/site/tree/' });
aku naruh action nya itu di site controller, trus kalo liat screen shoot yg di kasih, si akang belum ganti setting url managernya
'urlManager'=>array( 'urlFormat'=>'path', 'showScriptName'=>false,
#31
Posted 03 July 2012 - 05:10 AM
die(), on 03 July 2012 - 04:43 AM, said:
iya kang maaf ga liat reply yang ini
#32
Posted 29 October 2012 - 10:12 PM
thanks mas.
#33
Posted 28 February 2013 - 06:42 AM
Ade Fyrman, on 29 October 2012 - 10:12 PM, said:
thanks mas.
oh iya mas aku ngambil labelnya dari column->name, kalau dilihat di referensi berikut http://www.yiiframew...CDbColumnSchema cuma ada dua pilihan kemungkinan column->name atau column->rawName, aku harus membuat versi js dari cActiveForm->labelEx dulu supaya bisa baca dari modelnya dan sampai sekarang belum sempat mas maaf ya..
#34
Posted 25 June 2013 - 08:55 PM