cakeswxphp: simpler and on cake 1.2

After some user input, I updated the cakeswxphp packages. I also started a branch which supports cakephp 1.2. There is a change in the gateway locations: you no longer connect to cake_swx_gateway.php or cake_amf_gateway.php, but to swx.php and amf.php (default locations in swx). This should make it even simpler to start with (cake)swx!

Again, you can download it at the cakesxwphp page

6 Responses to “cakeswxphp: simpler and on cake 1.2”


  1. 1 kiang

    Thanks. I waited this for a long time.

    I found one typo in swx/php/core/shared/adapters/zendrowsetAdapter.php , the php end tag. :)

  2. 2 patate

    Hey, thanks for this, ill test now.

    I think this SWX / cakephp integration has GREAT potential. Too bad this project does not have more visibility.

  3. 3 kiang

    I met the performance issue in using this solution. The original method called through official amfphp took about 250ms, but the one without change to be called in CakePHP & amf.php took more than 4000ms.

  4. 4 wouter

    hey kiang,

    I ran some benchmarks myself. You can see the results in my latest blog post: http://blog.aboutme.be/2008/01/20/benchmarking-cakeswxamfphp/

    CakePHP & AMF is slower then the native amfphp. However, I didn’t get such a slowdown as you have here…

  5. 5 kiang

    I don’t know if I found the reason. I just removed pecl/apc from my server and then the result became similar with your benchmark. Sorry for post the message without more testing.

  6. 6 patate

    Bbbug ?

    cake_gateway_init.php : check out the comments

    if(!defined(’CORE_PATH’))
    {
    if(function_exists(’ini_set’))
    {
    ini_set(’include_path’,ini_get(’include_path’).PATH_SEPARATOR.CAKE_CORE_INCLUDE_PATH.PATH_SEPARATOR.ROOT.DS.APP_DIR.DS);
    //define(’APP_PATH’, null);
    //define(’CORE_PATH’, null);
    }
    //else
    //{
    define(’APP_PATH’, ROOT.DS.APP_DIR.DS);
    define(’CORE_PATH’, CAKE_CORE_INCLUDE_PATH.DS);
    //}
    }
    require CORE_PATH.’cake’.DS.’bootstrap.php’;

Leave a Reply