Checkbox Helper |
[eluser]stuffradio[/eluser]
This is just something I came up with quickly. I used it so I don't have to write if statements to see if the value in the database is set to true or not. Code: <?php Thoughts?
[eluser]Chris Newton[/eluser]
Since you've given this a class and are loading other helpers, technically it's a library, not a helper. Good idea anyway though. I'll be trying this out. http://ellislab.com/codeigniter/user-gui...lpers.html
[eluser]stuffradio[/eluser]
Well you're wrong because I actually made it as a library myself, but I called it a "helper" only because it helps you with something. I should've said library though ![]() Note: It said Formlib which stands for Form library
[eluser]Chris Newton[/eluser]
I apologize for belaboring a point: regardless of your naming conventions, the post title says "Checkbox Helper" which as you confirm is a misnomer. I'm not incorrect at all, the title is. I only point it out because there are many many new users unfamiliar with the structure of CI that from time to time become confused with the basics, let alone when implementing additional libraries, helper, and plugins. |
Welcome Guest, Not a member yet? Register Sign In |