![]() |
Checkbox Helper - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Checkbox Helper (/showthread.php?tid=9284) |
Checkbox Helper - El Forum - 06-19-2008 [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? Checkbox Helper - El Forum - 06-22-2008 [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-guide/general/helpers.html Checkbox Helper - El Forum - 06-22-2008 [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 Checkbox Helper - El Forum - 06-23-2008 [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. |