I am writing a form from within a plugin module using EEE 2.6.1

    class Meal_form {

    public function __construct()
        $this->EE =& get_instance();

    public function form()

        $form_data = array(
            "id"    => $this->EE->TMPL->form_id,
            "class" => $this->EE->TMPL->form_class

        $tagdata = $this->EE->TMPL->tagdata;

        $form = $this->EE->functions->form_declarations($form_data) . $tagdata . "</form>";

        return $form;

I receive the following error on form_declarations(); Fatal error: Call to undefined method EE_Functions::form_declarations()

Any ideas on this?



The method name is form_declaration(), not form_declarations().

  • Doh!, there goes my second stupid question of the year....
    – SuperNinja
    Feb 7 '14 at 17:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.