Hybrid View
-
4 May 2009 7:26 AM #1
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
-
4 May 2009 10:15 AM #2
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
-
6 May 2009 8:59 AM #3
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
-
4 May 2009 10:58 AM #4
Nice!
/**
* @author Chris Scott
* @business www.transistorsoft.com
* @rate $120USD / 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
*/
-
20 May 2009 1:03 PM #5
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
-
14 Jun 2009 4:08 PM #6
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
-
2 Jul 2009 11:37 AM #7
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
I then edited the app.yml and factories.yml with the changes as per the readme.Code:symfony propel:generate-module --with-show --non-verbose-templates frontend job JobeetJob
Next I added your example function executeMultiply to the class JobeetJob (/lib/model/JobeetJob.php)
then i ran
but the extdirect_api.yml file is empty (well not empty, it looks like thisCode:./s extdirect:generate-api frontend -d

Next I addedCode:# DO NOT MODIFY # Generated by extdirect:generate-api task { }
to my layout.php file, and then tried to call the multiply function from the test.js file like so:Code:<?php use_javascript('extdirect_api') ?> <?php use_javascript('test') ?>
But it doesn't work.Code:Ext.Direct.addProvider(Ext.app.REMOTING_API); console.log(JobeetJob.Multiply);
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...
-
3 Jul 2009 9:55 AM #8
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.
-
18 Jul 2009 4:30 AM #9
I'm using your plugin. Thanks for sharing your work!
-
30 Sep 2009 2:30 PM #10
Version 1.0.4 has been packaged and is available for download. It's highly recommended you upgrade to the latest version to take advantage of new features and bug fixes:
- Added _raw request parameter for access to all request data
- Removed automatic scanning of all plugins in favor of manually specified plugins (to prevent failed API generation for some plugins using auto classes)
- Removed error handler - caused too many issues with external libraries
- Added action namespace support
- Fixed bug where app.yml params were not being pulled because of environment
Cheers,
Dan


Reply With Quote