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); }
public function all() { $templates = \Concrete\Package\Formify\Src\FormifyTemplate::all(); $json = Loader::helper('json'); echo $json->encode($templates); }