I'm planning to develop a plugin or component for CakePHP to use with Ext.Direct. Any ideas on how to implement this? Where do you think should I route the requests, to the Controller or directly to the Model? I would like to keep it the Cake-way as much as possible. Like the use of $this->data.
Right now I'm rewriting the API.php for CakePHP. Found out there's a method listObjects() than can retrieve the available objects, be it models, controllers, etc.
My plan is to use requestAction method to get controller action result to return from direct router because models, components etc. are initialized automagically in controllers. Although cakephp book suggests not to use it, it is probably the most convient way to get final output without playing with the code much.
Another way is to implement a vendor class to contact with controllers but it is not native for direct web remoting tecnique because you would have to request to your controller actions by using a class as proxy.