![]() |
Creating my own helpers? Is this the good way to clean the view? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Creating my own helpers? Is this the good way to clean the view? (/showthread.php?tid=56884) Pages:
1
2
|
Creating my own helpers? Is this the good way to clean the view? - El Forum - 01-31-2013 [eluser]behnampmdg3[/eluser] [quote author="Harold Villacorte" date="1359700201"] $this->load->library('months_drop_down'); $this->months_drip_down->index(); Wouldn't it be much cooler to call it like this: $this->load->library('my_awesome_library'); $this->my_awesome_library->months_dropdown(); But we already got an answer on where to put helper functions.[/quote]Hey. Sure and do you put all your functions in that library? Creating my own helpers? Is this the good way to clean the view? - El Forum - 02-01-2013 [eluser]Harold Villacorte[/eluser] Yeah man. A library or a helper. Using a library would be the object oriented way of doing it. |