Welcome Guest, Not a member yet? Register   Sign In
PyroCMS v0.9.7.4 - an open-source modular general purpose CMS

[eluser]hugle[/eluser]
Hello Phil and other readers Smile

I came to one problem, in fact, I do not know, if it is caused by PyroCMS...
I just wanted to use this CMS with Form Generation Library located at http://ellislab.com/forums/viewthread/107861/ . It is really lovely, it cuts down Forms creation 5x times or more..

the process of creating the HTML form is really is, it for example:
Code:
$this->load->library('form');
        
        $this->form->fieldset('New question')
        ->textarea('body', FALSE, 'trim|strip_tags|required', "")
        ->html('<p style="margin-bottom: 10px;">')
        ->text('name', 'Nick', 'required|max_length[40]')
        ->html('</p>')
        ->submit('POST')
        ->validate();

        $this->data->form = $this->form->get();
        $this->data->errors = $this->form->errors;
the problem is that $this->form->get(); - is OK, it returns always data
but, $this->form->errors; - always is null. no data inside ...

I tested this function over few installations, like Live, fresh CI 1.7.2 - all were working fine. But I can't get this to work under PyroCMS

Maybe you, Phil, or someone else, can suggest something.. like $this->form->errors is used by PyroCMS by default... etc etcSmile

I really can't reproduce the bug Sad

THank you for your nice CMS Smile

I'll try to search for bugs after NY Smile

cheers, Jaroslav


Messages In This Thread
PyroCMS v0.9.7.4 - an open-source modular general purpose CMS - by El Forum - 12-30-2009, 05:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB