Exemplo n.º 1
0
 public function show($id)
 {
     $form = BuiltForm::find($id);
     $form->rendered = $this->formatForm($form);
     $this->layout->title = 'Form';
     $this->layout->content = View::make('forms::create_edit')->with('form', $form);
 }
Exemplo n.º 2
0
 /**
  * Get the form(s) associated with the module
  */
 public function forms()
 {
     $selected_forms = explode(", ", $this->form_id);
     $forms = array();
     foreach ($selected_forms as $form_id) {
         $form = BuiltForm::find($form_id);
         if ($form) {
             $forms[] = $form;
         }
     }
     return $forms;
 }