I have a question... - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: I have a question... (/showthread.php?tid=11277) |
I have a question... - El Forum - 09-02-2008 [eluser]Unknown[/eluser] Hi, i am new to CodeIgniter And i have a question that annoying me What are the differences between Modle, Libary and Helper? Thank You! If my english was incorrect, please correct me, i want to improve it =] I have a question... - El Forum - 09-02-2008 [eluser]Randy Casburn[/eluser] Hi Shay-A, Here are links to the user guide that discuss these things: Models Helpers Libraries If you want to create your own libraries, this user guide entry will help you with that: Creating Your Own Libraries Hope this helps, Randy I have a question... - El Forum - 09-02-2008 [eluser]xwero[/eluser] A model is the only entity that should be connected to the 'raw' data : sql queries, file content, screen scraping. A library and a helper manipulate the data passed to them by a model. The difference between a library and a helper is that the libraries are used in controllers and helpers are used in the views. This is a black and white view but as you know the real world isn't black and white so one function can be handled by another entity. For example a rss feed aggregator library. The feed content should be fetched by a model and passed to the library. |