Skip to content

Latest commit

 

History

History
62 lines (51 loc) · 1.85 KB

README.markdown

File metadata and controls

62 lines (51 loc) · 1.85 KB

DRAFT DOCUMENT

version 0.2 author AgBorkowski <andrzejborkowski(at-nospam)gmail.com> author Andreas Frömer ak cntx <andreas(at-nospam)froemer.net> copyright All rights reserved by Holicon Sp. z o.o. link http://holicon.pl

orginal source code taken from ExtJs MVC FeedViewer

Changes

0.2 change singular names of models to plurar for unification namespaces with backed framework. 0.1 init repository

Repository guide

  • extjs-mvc shows right name convention, and some fixes instead of ExtJs MVC official documentation

ExtJs MVC

name convention

Name convention inspired me from cakephp framework Inspired by cakephp

extjs mvc struct, server side framework + extjs

  • Models
    • Clases
      • plural, camel cased (APP.model.Users, APP.model.UserDashboards)
    • File
      • plural, camel cased (Users.js, UserDashboards.js)
  • Store
    • Clases
      • plurar, camel cased (APP.store.Users, APP.store.UserDashboards)
    • File
      • plurar, camel cased (Users.js, UserDashboards.js)
  • Controllers
    • Clases
      • plurar, camel cased (APP.controller.Users, FV.controller.UserDashboards)
    • File
      • plurar, camel cased (Users.js, UserDashboards.js)
  • Views
    • Path
      • controller name, underscored (/app/view/users/Index.js, /app/view/users/Edit.js)
    • File - action names (methods)
      • action name, camel cased (Index.js, Edit.js, Add.js)
    • Clases
      • plurar, camel cased (APP.views.Index, APP.views.Edit)

extjs mvc filesname

application layout

  • Viewport
    • xtype:menusIndex, region: 'west'
    • xtype:content, region: 'center' (Ext.tab.Panel)
      • xtype:articlesIndex
      • xtype:usersIndex