PHP code example of xenophy / fuel-ext-direct

1. Go to this page and download the library: Download xenophy/fuel-ext-direct library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

xenophy / fuel-ext-direct example snippets


'packages'  => array(
    'orm',
    'auth',
    'fuel-ext-direct',
),



class Direct_Foo {

    /**
     * bar
     *
     * @param $age
     * @param $sage
     *
     * @remotable
     * @formHandler
     */
    function bar($age, $sage) {

        return "result bar";
    }

}


    'Ext.direct.*'
],

launch: function () {
    Ext.direct.Manager.addProvider(Ext.REMOTING_API);
},