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'); }
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(); }