Welcome Guest, Not a member yet? Register   Sign In
I have a question...
#1

[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 =]
#2

[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
#3

[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.




Theme © iAndrew 2016 - Forum software by © MyBB