本文整理匯總了PHP中NextendForm::addExtra方法的典型用法代碼示例。如果您正苦於以下問題:PHP NextendForm::addExtra方法的具體用法?PHP NextendForm::addExtra怎麽用?PHP NextendForm::addExtra使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類NextendForm
的用法示例。
在下文中一共展示了NextendForm::addExtra方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
NextendForm::tokenize();
$slidersModel = $this->getModel('sliders');
$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');
?>