On Sun, Dec 20, 2009 at 12:57 PM, KSChan <mr.ksc...@gmail.com> wrote:
> > Hi, > > >> > >> > > I'm now ready to start the ExtJs 3.0 migration. >> > > I will start it soon. >> > >> > Great :) >> >> I have work on the migration. I think I will be able to commit a lot of >> change >> tommorow. >> > > A bit OT here =P > > Regarding ExtJs 3.0 migration , there is a server side framework namely > Ext.Direct (http://www.extjs.com/products/extjs/direct.php) that's doing > something like our ExtController.php (from my first impression...). You may > get samples of Ext.Direct from > http://www.extjs.com/products/extjs/#sample-12 > > Greetings, An update to Ext.Direct. >From blog [1] and forum [2] posts, I believe Ext.Direct is the web service framework. The framework takes the use of comment as web service "annotation", much Like using Java's annotation... its a matter of putting comments about your function that include tags like > @remotable, @formHandler and @remoteName (to specify a different name for a > method on the client side). Here is an example of a simple Echo class that > returns whatever you pass its send function: [3] <?php class Class_Echo { /** * @remotable */ public function send($string){ return $string; } } ?> After that, client side script just uses the web service like EchoAction.send('...') and thus no Ext.Ajax.request is needed. If we adopt this framework as extjs3.0 migration, there will be a lot of work. [1] - http://www.extjs.com/blog/2009/05/13/introducing-ext-direct/ [2] - http://www.extjs.com/forum/showthread.php?t=67992 [3] - http://www.extjs.com/forum/showthread.php?t=68186 ks.