Threaded View

  1. #1
    Sencha User j.bruni's Avatar
    Join Date
    Jun 2009
    Uberlândia, MG, Brazil
    Vote Rating
    j.bruni is on a distinguished road


    Wink Extremely Easy Ext.Direct integration with PHP

    Extremely Easy Ext.Direct integration with PHP

    *** Compatible with ExtJS 4 ***

    This is an updated / refactored version of "Easy Ext.Direct integration with PHP"

    How to use:

    1) PHP

    PHP Code:

    require 'ExtDirect.php';

        public function 
    date$format )
    date$format );

    ExtDirect::provide'Server' );

    Here, "Server" is the PHP class that we want to provide access from the JavaScript code. It could be any other class.

    2) HTML:

    <script type="text/javascript" src="ext-direct.php?javascript"></script>
    Here, "ext-direct.php" points to the PHP file shown on item 1. The "?javascript" query string is necessary, because the default output is on JSON format (good for Ext Designer).

    3) JavaScript:

    Code: 'Y-m-d', function(result){ alert( 'Server date is ' + result ); } );
    Here, to call the "date" method from PHP "Server" class, we prepended the default namespace Ext.php. The first parameter is the $format parameter. The second parameter is the JavaScript callback function that will be executed after the AJAX call has been completed. Here, an alert box shows the result.

    What are you waiting for the download?

    It includes:

    ExtDirect.php - This is the file you include in your PHP script.
    example.php - This is a working sample (PHP part).
    example.html - The HTML and JavaScript parts of the working sample.

    In the next post, I tell you about the features and configuration options.


    The current latest version is, which you can download below:
    Attached Files
    Last edited by j.bruni; 8 Nov 2011 at 5:31 PM. Reason: New version available (November 8, 2011)

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi