1. #1
    Ext JS Premium Member dancablam's Avatar
    Join Date
    Apr 2008
    Location
    Dallas, TX
    Posts
    134
    Vote Rating
    0
    dancablam is on a distinguished road

      0  

    Thumbs up Ext.Direct router for the symfony framework

    Ext.Direct router for the symfony framework


    Hello Ext Community,

    I'm happy to announce the release of the dsExtDirectPlugin for symfony. The plugin provides a router and an API generator for use in symfony 1.1 and 1.2.

    Features include:
    • Automatic API generation - simply add @extdirect-enable to your actions' doc comments and the JS and YAML is generated for you via the generate-api task
    • Works with your existing code with minimal changes required.
    • Fully integrates with symfony's request methods ( $this->getRequestParameter('name') )
    • Extensible so you can easily add custom functionality to meet your specific needs.

    The Plugin: http://www.symfony-project.org/plugi...xtDirectPlugin

    I will be maintaining this plugin actively so please comment on this thread or email me (danhstevens [at] gmail [dot] com) if you find any bugs or would like to request any enhancements. If you would like to contribute to the plugin, that would be welcomed too.

    Thanks to the Ext team for all your hard work bringing us Ext.Direct and all the additional great features of 3.0.

    Cheers,
    Dan

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,304
    Vote Rating
    125
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Thanks for the contribution Dan! We will soon release a blog entry that details many of the features of Ext.Direct.

    We will also be providing links to popular implementations of the Ext.Direct server-side stack.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Ext JS Premium Member christocracy's Avatar
    Join Date
    Oct 2006
    Location
    Montreal
    Posts
    381
    Vote Rating
    0
    christocracy is on a distinguished road

      0  

    Default


    Nice!
    /**
    * @author Chris Scott
    * @business www.transistorsoft.com
    * @rate $150USD / hr; training $500USD / day / developer (5 dev min)
    *
    * @SenchaDevs http://senchadevs.com/developers/transistor-software
    * @twitter http://twitter.com/#!/christocracy
    * @github https://github.com/christocracy
    */

  4. #4
    Ext JS Premium Member dancablam's Avatar
    Join Date
    Apr 2008
    Location
    Dallas, TX
    Posts
    134
    Vote Rating
    0
    dancablam is on a distinguished road

      0  

    Default


    Thanks guys. The blog entry will be a huge help to ensure I haven't left anything out - and hopefully it will clarify some things for me (like the purpose of 'Around Calls'). I'm looking forward to that.

    Thanks again.

    Cheers,
    Dan

  5. #5
    Ext JS Premium Member dancablam's Avatar
    Join Date
    Apr 2008
    Location
    Dallas, TX
    Posts
    134
    Vote Rating
    0
    dancablam is on a distinguished road

      0  

    Default


    Version 1.0.1 of the plugin has just been released. It contains enhanced error handling, the ability to set custom names for your actions and methods via the doc comments, and several other tweaks to make the plugin operate more smoothly. If you use this plugin please be sure to upgrade to take advantage of these latest enhancements.

    Special thanks to Jesse Dhillon (jesse.dhillon) for joining the plugin dev team and for his contributions.

    More enhancements to come.

    Cheers,
    Dan

  6. #6
    Ext JS Premium Member dancablam's Avatar
    Join Date
    Apr 2008
    Location
    Dallas, TX
    Posts
    134
    Vote Rating
    0
    dancablam is on a distinguished road

      0  

    Default


    Version 1.0.2 has been released. If you're using 1.0.1 or lower it's highly recommended you upgrade to take advantage of the lastest features in Ext JS RC2.

    Cheers,
    Dan

  7. #7
    Ext User
    Join Date
    Jul 2009
    Posts
    8
    Vote Rating
    0
    woleium is on a distinguished road

      0  

    Question Lost and need help!

    Lost and need help!


    I'm still learning symfony, and am keen to use this plugin. I cant seem to get it to work though. Could you tell me where i went wrong here?

    Follwing the instructions in the readme, and using the Jobeet sample code.

    The frontend module was gnenerated with the command
    Code:
    symfony propel:generate-module --with-show --non-verbose-templates frontend job JobeetJob
    I then edited the app.yml and factories.yml with the changes as per the readme.

    Next I added your example function executeMultiply to the class JobeetJob (/lib/model/JobeetJob.php)

    then i ran
    Code:
    ./s extdirect:generate-api frontend -d
    but the extdirect_api.yml file is empty (well not empty, it looks like this
    Code:
    # DO NOT MODIFY
    # Generated by extdirect:generate-api task
    {  }
    Next I added
    Code:
    <?php use_javascript('extdirect_api') ?> 
    <?php use_javascript('test') ?>
    to my layout.php file, and then tried to call the multiply function from the test.js file like so:
    Code:
    Ext.Direct.addProvider(Ext.app.REMOTING_API);
    console.log(JobeetJob.Multiply);
    But it doesn't work.

    I suspect that I am using the wrong class, as the generated yml file is empty, but I dont know.

    Any pointers would be hugely appreciated...

  8. #8
    Ext User
    Join Date
    Jul 2009
    Posts
    8
    Vote Rating
    0
    woleium is on a distinguished road

      0  

    Default got it!

    got it!


    I'm such a wally.

    the plugin parses the actions files, not the model files.

    puting the commneted function in the actions.class.php file fixed everything.

  9. #9
    Ext User Starfall's Avatar
    Join Date
    Jan 2008
    Location
    Moscow, Russian Federation
    Posts
    158
    Vote Rating
    0
    Starfall is on a distinguished road

      0  

    Default


    I'm using your plugin. Thanks for sharing your work!

  10. #10
    Ext User
    Join Date
    Dec 2007
    Posts
    27
    Vote Rating
    0
    bornsilly is on a distinguished road

      0  

    Default


    It might be because i am new to Symfony, but reading the installation instruction i run into a problem straight away.

    When i do:

    Code:
     symfony plugin:install dsExtDirectPlugin
    then the following errors are returned:

    Code:
    >> plugin    installing plugin "dsExtDirectPlugin"
    >> sfPearFrontendPlugin Could not download from
    >> sfPearFrontendPlugin "http://plugins.symfony-project.org/get/dsExtDirectPlugin/dsExtDirectPlugin-1.0.2.tar"
    >> sfPearFrontendPlugin (File
    >> sfPearFrontendPlugin http://plugins.symfony-project.org:80/get/dsExtDirectPlugin/dsExtDirectPlugin-1.0.2.tar
    >> sfPearFrontendPlugin not valid (received: HTTP/1.1 404 Not Found
    >> sfPearFrontendPlugin ))
    >> sfPearFrontendPlugin Invalid or missing remote package file
    I seems the package file is incorrect?