Welcome Guest, Not a member yet? Register   Sign In
[split] O-O Forms?
#6

(06-29-2016, 01:42 PM)cartalot Wrote:
(06-29-2016, 06:11 AM)kilishan Wrote: Then again, I don't see a point in the HTML helpers in general, honestly... I've only ever heard one valid reason (switching CSS frameworks and writing a new class to modify the markup) and that's one that is still a waste of time, unless you've got 1000's of views. So - I might not be the target audience. Smile

Do you mean like the codeigniter form helper? The point of the form helper is so you don't have to mix html code and php code just to make a form field. And it becomes even more helpful when using a css framework like bootstrap because you can easily put / modify the bootstrap code in the form helper. Its a huge timesaver when making large forms. It could be improved by making it a clearer part of codeigniter form validation and set_value().

Otherwise, theres many different ways of creating form fields in a model. Especially with forms that have 3 different potential set values - initially from the database, from a failed form submission, and from the successful database update. I'm continually shocked at how people dismiss new ideas out of hand. I figured out a better way to create form fields in a model because i couldn't give a good answer to someones question on this forum. I realized from that question there had to be a different solution then what i was doing. There is no "best" solution but just consider that some of us are working with limited budgets and no designers helping with the html. So yes if we can figure out a faster way to build huge complex forms that also include the bootstrap css code we need - without having to code any html by hand to do it - its extremely valuable.

Not dismissing it out of hand because it's a new idea. I've used these before and I've always ran into issues with them, honestly. Maybe I just like too much control over my HTML, I don't know, but I've done a number of pretty large/complex projects over the years where I was pretty much the sole developer. As for the form helper, it doesn't seem to save much typing over over a standard HTML form. And you can make things a lot faster by taking advantage of your IDE, if you use one, or something TextExpander if you don't want the repetition.

Quote:without having to code any html by hand to do it


And why is this a bad thing?

I know everyone has different preferences. I was just saying mine. I prefer my HTML as HTML, my Javascript as javascript, quite often my SQL is raw, also. Partially due to control, partially because I can look at it and immediately know what's going on, and partially because I've butted heads with too many edge cases over the years to really enjoy finding the edges of the abstractions.

Now, that doesn't mean tools like that won't be in CI4 because I know there are people that use them. It's just not for me.
Reply


Messages In This Thread
[split] O-O Forms? - by Riko - 06-29-2016, 12:29 AM
RE: [split] O-O Forms? - by PaulD - 06-29-2016, 05:19 AM
RE: [split] O-O Forms? - by kilishan - 06-29-2016, 06:11 AM
RE: [split] O-O Forms? - by cartalot - 06-29-2016, 01:42 PM
RE: [split] O-O Forms? - by ivantcholakov - 06-29-2016, 06:36 AM
RE: [split] O-O Forms? - by kilishan - 06-29-2016, 01:54 PM
RE: [split] O-O Forms? - by InsiteFX - 06-29-2016, 06:14 PM
RE: [split] O-O Forms? - by kilishan - 06-29-2016, 07:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB