1. #1
    Ext User
    Join Date
    Sep 2008
    Posts
    20
    Vote Rating
    0
    gianpaulo is on a distinguished road

      0  

    Default CakePHP Stack (Planned)

    CakePHP Stack (Planned)


    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.

    If you have any ideas, kindly post them here.

  2. #2
    Ext User
    Join Date
    Jun 2008
    Posts
    8
    Vote Rating
    0
    erhan is on a distinguished road

      0  

    Default


    I wrote a basic implementation that works with vendor classes, not controllers.

    http://www.extjs.com/forum/showthread.php?t=86501

    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.

  3. #3
    Sencha User Dumas's Avatar
    Join Date
    Dec 2008
    Location
    Vienna, Austria
    Posts
    582
    Vote Rating
    9
    Dumas will become famous soon enough

      0  

    Default


    For people searching for a implementation, check out:
    Bancha Project

    It integrates CakePHP with Sencha Touch and ExtJS, and does a lot for you out of the box.

    Best regards,
    Roland
    Roland Sch├╝tz
    Software Architect
    ---
    Bancha - Seamless integrate CakePHP with ExtJS and Sencha Touch

Thread Participants: 2