本文整理汇总了PHP中TApplication::loadPage方法的典型用法代码示例。如果您正苦于以下问题:PHP TApplication::loadPage方法的具体用法?PHP TApplication::loadPage怎么用?PHP TApplication::loadPage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TApplication
的用法示例。
在下文中一共展示了TApplication::loadPage方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loadProgram
/**
* Load an specific program
*/
public static function loadProgram($param)
{
$program = $param['input'][0];
if ($program) {
TApplication::loadPage($program);
}
}
示例2: loadProgram
/**
* Load an specific program
*/
public function loadProgram($param)
{
$data = $this->form->getData();
$programs = array_keys($data->input);
$program = $programs[0];
TApplication::loadPage($program);
}
示例3: onNextForm
/**
* onNextForm
*/
public function onNextForm()
{
try {
$this->form->validate();
$data = $this->form->getData();
if ($data->password !== $data->confirm) {
throw new Exception('Passwords do not match');
}
// store data in the session
TSession::setValue('form_step1_data', $data);
// Load another page
TApplication::loadPage('MultiStepMultiForm2View', 'onLoadFromForm1', (array) $data);
} catch (Exception $e) {
new TMessage('error', $e->getMessage());
}
}
示例4: onBackForm
/**
* Load the previous form
*/
public function onBackForm()
{
// Load another page
TApplication::loadPage('MultiStepMultiFormView', 'onLoadFromSession');
}
示例5: onGoToCatalog
/**
* Go back to the catalog
*/
public function onGoToCatalog()
{
TApplication::loadPage('ProductCatalogView');
}
示例6: onEdit
/**
* method onEdit()
* Executed whenever the user clicks at the edit button da datagrid
*/
function onEdit($param)
{
TApplication::loadPage('DesignedFormView', 'onEdit', $param);
}