/** * Load an specific program */ public static function loadProgram($param) { $program = $param['input'][0]; if ($program) { TApplication::loadPage($program); } }
/** * Load an specific program */ public function loadProgram($param) { $data = $this->form->getData(); $programs = array_keys($data->input); $program = $programs[0]; TApplication::loadPage($program); }
/** * 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()); } }
/** * Load the previous form */ public function onBackForm() { // Load another page TApplication::loadPage('MultiStepMultiFormView', 'onLoadFromSession'); }
/** * Go back to the catalog */ public function onGoToCatalog() { TApplication::loadPage('ProductCatalogView'); }
/** * method onEdit() * Executed whenever the user clicks at the edit button da datagrid */ function onEdit($param) { TApplication::loadPage('DesignedFormView', 'onEdit', $param); }