Permalink
Browse files

updating example6 with comments

  • Loading branch information...
1 parent 7086ede commit 4fdc8c29f601ce113adcbb1cbb832541c16e4fd8 @enygma committed Jun 4, 2012
View
8 zfapp/public/js/examples/example6/app.js
@@ -1,19 +1,27 @@
+/**
+ * Create the application instance
+ */
Ext.application({
+ /** Give the app a name */
name: 'example6',
+ /** Set the default root path */
appFolder: '/js/examples/example6/app',
+ /** Autoload these controllers */
controllers: [
'Index'
],
+ /** Launch the application */
launch: function() {
console.log('Launch application "example6"');
Ext.create('Ext.container.Viewport', {
layout: 'fit',
items: [
{
+ /** Reference to example6.view.index.Login view */
xtype : 'loginwin'
}
]
View
6 zfapp/public/js/examples/example6/app/controller/Index.js
@@ -1,7 +1,12 @@
+/**
+ * Default index controller
+ */
Ext.define('example6.controller.Index', {
+ /** Extend the default controller */
extend: 'Ext.app.Controller',
+ /** Autloaod views, models and stores */
views: [
'index.Login'
],
@@ -10,6 +15,7 @@ Ext.define('example6.controller.Index', {
stores: [
],
+ /** Initialize the controller */
init: function() {
console.log('Index controller');
}

0 comments on commit 4fdc8c2

Please sign in to comment.