Ejemplo n.º 1
0
 public function edit()
 {
     $forms = \Concrete\Package\Formify\Src\FormifyForm::getAll();
     $this->set('forms', $forms);
     foreach ($forms as $form) {
         if ($form->fID == $this->fID) {
             $f = $form;
             $this->set('f', $f);
         }
     }
     $templates = \Concrete\Package\Formify\Src\FormifyTemplate::all();
     $this->set('templates', $templates);
 }
Ejemplo n.º 2
0
 public function all()
 {
     $templates = \Concrete\Package\Formify\Src\FormifyTemplate::all();
     $json = Loader::helper('json');
     echo $json->encode($templates);
 }