Ext.ns("com.quizzpot.tutorial");

com.quizzpot.tutorial.TreeFilesTutorial = {
	init: function(){
		//your code here
		var tree = new Ext.tree.TreePanel({  	
			border: false,
			autoScroll:true,
			dataUrl:'get-files.php',
			root: new Ext.tree.AsyncTreeNode({
				id:'.',
				text: 'User files'
			})
		});
		
		var win = new Ext.Window({		
			title:'Reading files example',
			layout:'fit',
			width:300,
			height:400,
			items: tree
		});
		win.show();	
	}
}

Ext.onReady(com.quizzpot.tutorial.TreeFilesTutorial.init,com.quizzpot.tutorial.TreeFilesTutorial);
