Development

Changeset 29452

You must first sign up to be able to contribute.

Changeset 29452

Show
Ignore:
Timestamp:
05/13/10 23:13:07 (3 years ago)
Author:
Leon.van.der.Ree
Message:

updated README, TODO and fixed default app.yml

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/ExtjsGeneratorPlugin/trunk/README

    r29435 r29452  
    66------------ 
    77 
    8 Move into your project directory and issue the following commands: 
     8Move 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     
     12then issue the following commands: 
    913 
    1014    > svn export http://svn.symfony-project.com/plugins/ExtjsGeneratorPlugin/trunk/ ./plugins/ExtjsGeneratorPlugin 
    1115    > svn export http://svn.symfony-project.com/plugins/sfExtjs3Plugin/trunk/ ./plugins/sfExtjs3Plugin 
    1216    > svn export http://svn.symfony-project.com/plugins/sfPropel15Plugin/trunk ./plugins/sfPropel15Plugin 
    13     >  
     17 
     18Or add them as svn-externals 
     19 
     20Now add the extjs-framework to the sfExtjs3Plugin 
     21      
    1422    > mkdir ./plugins/sfExtjs3Plugin/web 
    1523    > cd ./plugins/sfExtjs3Plugin/web 
     
    1826    > rm ext-3.2.1.zip 
    1927    > 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     
     29now 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 ../../../ 
    2434 
    2535Disable the core Propel plugin and enable the `sfPropel15Plugin`, `sfExtjs3Plugin`, and `ExtjsGeneratorPlugin`: 
     
    3646    } 
    3747 
     48     
     49And finally publish the assets of the plugins 
     50    > ./symfony plugin:publish-assets 
     51 
    3852Change the path of the symfony behaviors in the `config/propel.ini` file of your project: 
    3953 
     
    4660 
    4761The 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 
     63Don' t forget to setup apache and create a database. 
     64Tip use the firebugsymfony plugin to see the symfony-debug tools in firebug. 
     65 
     66after 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     
     71and you can create your modules with     
     72   
     73    > ./symfony extjs:generate-admin app_name ModelName 
     74 
     75That is it, you should now see your ExtJS powered modules when you take a look with your browser! 
     76 
     77There 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  
     79and refresh you should now see a list, with filter, and functionality to add new items! 
  • plugins/ExtjsGeneratorPlugin/trunk/TODO.txt

    r29451 r29452  
    2222grid row expander 
    2323grid grouping 
     24 
     25 
     26use sfGrid (once it is ready)  
     27 
     28 
     29### usability 
     30don' t show delete buttons when object is not created yet in edit-form 
  • plugins/ExtjsGeneratorPlugin/trunk/config/app.yml

    r29426 r29452  
    1515    list_loadMask:              false 
    1616 
    17     module_returns_layout:      false                   # true uses the build in viewport, set to false if you want to use your own layout 
     17    module_returns_layout:      true                    # true uses the build in viewport, set to false if you want to use your own layout 
    1818    module_grid_panel_name:     Ext.app.sf.GridPanel    # the global var name for the list grid panel 
    1919    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 
    2020    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 
    2121    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. 
    2323 
    2424    format_date:                "m/d/Y"