Пример #1
0
 public function ls()
 {
     Runtime::loadModule('rom');
     $items = array('name' => '', 'age' => '12');
     $form = Validation\Validation::parse('vld', $items);
     $this->data->form = $form;
     $this->data->report = $form->validate();
     $this->data->fsm = \FSM\Engine::parse('site');
 }
Пример #2
0
 public function run()
 {
     $fsm = \FSM\Engine::parse('site');
     $path = Path::instance()->evaluate('common') . '/fsm.php';
     ob_start();
     require $path;
     $this->responseBuffer = ob_get_contents();
     ob_end_clean();
 }