當前位置: 首頁>>代碼示例>>PHP>>正文


PHP NextendUri::ajaxUri方法代碼示例

本文整理匯總了PHP中NextendUri::ajaxUri方法的典型用法代碼示例。如果您正苦於以下問題:PHP NextendUri::ajaxUri方法的具體用法?PHP NextendUri::ajaxUri怎麽用?PHP NextendUri::ajaxUri使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在NextendUri的用法示例。


在下文中一共展示了NextendUri::ajaxUri方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: render

 function render($xmlpath, $data)
 {
     $css = NextendCss::getInstance();
     $js = NextendJavascript::getInstance();
     $css->addCssLibraryFile('common.css');
     $css->addCssLibraryFile('window.css');
     $css->addCssLibraryFile('configurator.css');
     $js->loadLibrary('dojo');
     nextendimport('nextend.form.form');
     $form = new NextendForm();
     $form->loadArray($data);
     $form->loadXMLFile($xmlpath);
     echo $form->render('settings');
     $js->addLibraryJsAssetsFile('dojo', 'form.js');
     $js->addLibraryJs('dojo', '
         new NextendForm({
           container: "smartslider-form",
           data: ' . json_encode($form->_data) . ',
           xml: "' . NextendFilesystem::toLinux(NextendFilesystem::pathToRelativePath($xmlpath)) . '",
           control_name: "settings",
           url: "' . NextendUri::ajaxUri('nextend', 'smartslider') . '",
           loadedJSS: ' . json_encode($js->generateArrayJs()) . ',
           loadedCSS: ' . json_encode($css->generateArrayCSS()) . '
         });
     ', true);
 }
開發者ID:pguilford,項目名稱:vcomcc,代碼行數:26,代碼來源:settings.php

示例2: array

$xml = $slidersModel->editDynamicForm(isset($_POST['dynamic']) ? $_POST['dynamic'] : array());
?>

    <input name="save" value="1" type="hidden"/>
</form>

<?php 
$js = NextendJavascript::getInstance();
$js->addLibraryJsAssetsFile('dojo', 'form.js');
$js->addLibraryJs('dojo', '
    new NextendForm({
      container: "smartslider-form",
      data: {},
      extra: ' . NextendForm::addExtra() . ',
      xml: "' . NextendFilesystem::toLinux(NextendFilesystem::pathToRelativePath($xml)) . '",
      control_name: "dynamic",
      url: "' . NextendUri::ajaxUri('nextend', 'smartslider') . '",
      loadedJSS: ' . json_encode($js->generateArrayJs()) . ',
      loadedCSS: ' . json_encode($css->generateArrayCSS()) . '
    });
', true);
?>


<?php 
$this->loadFragment('secondcolend');
?>


<?php 
$this->loadFragment('footer');
開發者ID:sangikumar,項目名稱:IP,代碼行數:31,代碼來源:createdynamicstep2.php


注:本文中的NextendUri::ajaxUri方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。