Ejemplo n.º 1
0
 /**
  * We will generate Form.
  */
 private function generateForm()
 {
     // Generate Form Component class
     $controllerInstance = Controller::instance($this->columns, null, $this);
     $formTemplateDir = dirname(dirname(__FILE__)) . DS . 'src' . DS . 'Apps' . DS . 'Form' . DS;
     $form = new Form($controllerInstance, $this);
     $form->setFormTemplatePath($formTemplateDir);
     $form->generate();
 }
Ejemplo n.º 2
0
 /**
  * We will generate Form
  */
 private function generateForm()
 {
     // Generate Form Component class
     $controllerInstance = Controller::instance($this->inflect, $this->columns, $this->viewType, $this);
     $formTemplateDir = dirname(dirname(__FILE__)) . DS . 'src' . DS . ucfirst('apps') . DS . ucfirst('components') . DS . 'Form' . DS;
     $form = new Form($controllerInstance, $this, $this->inflect);
     $form->setFormTemplatePath($formTemplateDir);
     $form->generate();
 }