Changeset 29452
- Timestamp:
- 05/13/10 23:13:07 (3 years ago)
- Files:
-
- plugins/ExtjsGeneratorPlugin/trunk/README (modified) (4 diffs)
- plugins/ExtjsGeneratorPlugin/trunk/TODO.txt (modified) (1 diff)
- plugins/ExtjsGeneratorPlugin/trunk/config/app.yml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/ExtjsGeneratorPlugin/trunk/README
r29435 r29452 6 6 ------------ 7 7 8 Move into your project directory and issue the following commands: 8 Move into your project directory and create a new project 9 10 > /path/to/sf1.4/data/bin/symfony generate:project --orm=propel project_name 11 12 then issue the following commands: 9 13 10 14 > svn export http://svn.symfony-project.com/plugins/ExtjsGeneratorPlugin/trunk/ ./plugins/ExtjsGeneratorPlugin 11 15 > svn export http://svn.symfony-project.com/plugins/sfExtjs3Plugin/trunk/ ./plugins/sfExtjs3Plugin 12 16 > svn export http://svn.symfony-project.com/plugins/sfPropel15Plugin/trunk ./plugins/sfPropel15Plugin 13 > 17 18 Or add them as svn-externals 19 20 Now add the extjs-framework to the sfExtjs3Plugin 21 14 22 > mkdir ./plugins/sfExtjs3Plugin/web 15 23 > cd ./plugins/sfExtjs3Plugin/web … … 18 26 > rm ext-3.2.1.zip 19 27 > ln -s ext-3.2.1 extjs 20 > cd ../../../web/ 21 > ln -s ../plugins/sfExtjs3Plugin/web sfExtjs3Plugin 22 > ln -s ../plugins/ExtjsGeneratorPlugin/web ExtjsGeneratorPlugin 23 > ln -s ../plugins/sfPropel15Plugin/web sfPropel15Plugin 28 29 now extract the IconMgr library (we want to keep subversion fast, so we zipped it) 30 31 > cd ../../ExtjsGeneratorPlugin/web 32 > tar xvzf ../Ext.ux.IconMgr.tar.gz 33 > cd ../../../ 24 34 25 35 Disable the core Propel plugin and enable the `sfPropel15Plugin`, `sfExtjs3Plugin`, and `ExtjsGeneratorPlugin`: … … 36 46 } 37 47 48 49 And finally publish the assets of the plugins 50 > ./symfony plugin:publish-assets 51 38 52 Change the path of the symfony behaviors in the `config/propel.ini` file of your project: 39 53 … … 46 60 47 61 The new options for the `admin15` generator theme are fully documented, and illustrated by real life examples, in the [`doc/admin_generator.txt`](http://trac.symfony-project.org/browser/plugins/sfPropel15Plugin/trunk/doc/admin_generator.txt) file in this plugin source code. 62 63 Don' t forget to setup apache and create a database. 64 Tip use the firebugsymfony plugin to see the symfony-debug tools in firebug. 65 66 after you setup your database and create your model with Propel, you should create the extjs forms and filters with 67 68 > ./symfony extjs:build-forms 69 > ./symfony extjs:build-filters 70 71 and you can create your modules with 72 73 > ./symfony extjs:generate-admin app_name ModelName 74 75 That is it, you should now see your ExtJS powered modules when you take a look with your browser! 76 77 There is however a change you get a server-error when you have relations in your schema. The generator is looking for the __toString() methods for the related objects, but once you have implemented these functions in your model run 78 > ./symfony cc 79 and refresh you should now see a list, with filter, and functionality to add new items! plugins/ExtjsGeneratorPlugin/trunk/TODO.txt
r29451 r29452 22 22 grid row expander 23 23 grid grouping 24 25 26 use sfGrid (once it is ready) 27 28 29 ### usability 30 don' t show delete buttons when object is not created yet in edit-form plugins/ExtjsGeneratorPlugin/trunk/config/app.yml
r29426 r29452 15 15 list_loadMask: false 16 16 17 module_returns_layout: false# true uses the build in viewport, set to false if you want to use your own layout17 module_returns_layout: true # true uses the build in viewport, set to false if you want to use your own layout 18 18 module_grid_panel_name: Ext.app.sf.GridPanel # the global var name for the list grid panel 19 19 module_tab_panel_name: Ext.app.sf.TabPanel # the global var name for the list tab panel, gridpanel is automatically an item of the tabpanel 20 20 module_filter_panel_name: Ext.app.sf.FilterPanel # the global var name doe the list filter panel, filterpanel is not an item of the tabpanel 21 21 module_view_port_name: Ext.app.sf.ViewPort # the global var name doe the list filter panel, filterpanel is not an item of the viewport 22 module_app_init_partial: init_app # partial located in the app/templates directory that adds panels to your custom layout.22 # module_app_init_partial: init_app # partial located in the app/templates directory that adds panels to your custom layout. 23 23 24 24 format_date: "m/d/Y"