本文整理汇总了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);
}
示例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');