Welcome Guest, Not a member yet? Register   Sign In
form helper generated form is above head tags[SOLVED]

Hi people,
i'm using form helper and have got one problem with it
in controller file i load->helper('form') and add form elements and then load->view('someview').Generated form looks ok and acts exactly i want but in the view file form is the first object, i mean it's even before-above head tags so it's first thing you see then is the rest of view file, text, some dom objects ect...
How to put form where it "belongs" ?

the form-helper-functions are meant to be executed in a view file Smile

You add form elements in your controller?
And then load your view?

If so, it makes sence the form is displayed before the view.

Add the form elements to your view. That should solve it(at least if I understood you correctly)


yes it makes sence.... Smile
thanks you both, what a noob i am

Theme © iAndrew 2016 - Forum software by © MyBB