Пример #1
0
 function index()
 {
     $Step = new mStep();
     $Step->isfirst = 1;
     $Step->load();
     $DB = new mStep();
     $AllSteps = $DB->get();
     $StepArray = array();
     $StepArray[''] = 'None';
     $StepArray[-1] = 'End of Process';
     foreach ($AllSteps as $S) {
         $StepArray[$S->id()] = $S->short_title;
     }
     data('AllSteps', json_encode($StepArray));
     data('Step', $Step);
     $this->display('custom/steps');
 }