Welcome Guest, Not a member yet? Register   Sign In
Confused: Form Helper
#1

[eluser]Unknown[/eluser]
So I am a new user of CodeIgniter. I am starting to get the hang of it and am in the process of building my first application with it. The first page I am starting will be using forms. I remembered reading something about a form helper and so I went to the user guide to read up on it and see what kind of stuff it can help me with.

So I know about it now, and it's making me feel uncomfortable because since I first started using PHP a decade I have always learned/heard that generating html/presentational code with PHP is bad practice. Essentially, it is the separating presentation from logic idea. Yet, basically all of the form helper functions in CI are for generating HTML form code.

Should I just be getting over it and start using the form helper functions? What benefits does the functions in the form helper offer other than saving me from writing a few lines of code? Is the form helper really just what it says, a "helper" and it really doesn't matter if I use it or not but it's just there to help if someone wanted to use it?

Are there any downsides to me writing my own forms in my views with html rather than generating them?

Any ideas/thoughts on this are welcome




Theme © iAndrew 2016 - Forum software by © MyBB