Example #1
0
 public function Test_from()
 {
     Vendor('Form.Form2');
     $table_id = $_REQUEST['table_id'];
     $tableInfo = M($this->cm_table)->where('table_id=' . $table_id)->find();
     $test_form = new Form(U('Activity/do_add_ac'));
     $test_form->_addBaseElement($tableInfo['table_name']);
     $form = $test_form->_getForm();
     $this->assign('form', $form);
     $this->display('test_from');
 }