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

[eluser]quince[/eluser]
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" ?
Thanks
#2

[eluser]narkaT[/eluser]
the form-helper-functions are meant to be executed in a view file Smile
#3

[eluser]rogierb[/eluser]
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)

R.
#4

[eluser]quince[/eluser]
yes it makes sence.... Smile
thanks you both, what a noob i am
cheers
Smile




Theme © iAndrew 2016 - Forum software by © MyBB