本文整理匯總了PHP中Ajax::getinstance方法的典型用法代碼示例。如果您正苦於以下問題:PHP Ajax::getinstance方法的具體用法?PHP Ajax::getinstance怎麽用?PHP Ajax::getinstance使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Ajax
的用法示例。
在下文中一共展示了Ajax::getinstance方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
<?php
/**
* Ajax entry point of the system
*
* @author Lindsay Marshall <lindsay.marshall@ncl.ac.uk>
* @copyright 2012-2015 Newcastle University
*/
/**
* The real work is all done in the Ajax class.
*/
include 'class/support/framework.php';
Framework::initialise();
// Ajax on, debug on, load twig, load RB
$ld = Local::getinstance()->setup(__DIR__, TRUE, TRUE, TRUE, TRUE);
# setup the Local singleton
Ajax::getinstance()->handle(Context::getinstance()->setup());
示例2:
<?php
/**
* Ajax entry point of the system
*
* @author Lindsay Marshall <lindsay.marshall@ncl.ac.uk>
* @copyright 2012-2015 Newcastle University
*/
/**
* The real work is all done in the Ajax class.
*/
include 'class/support/framework.php';
Framework::initialise();
// Ajax on, debug on, load twig, load RB
Ajax::getinstance()->handle(Context::getinstance()->setup(Local::getinstance()->setup(__DIR__, TRUE, TRUE, TRUE, TRUE)));