Welcome Guest, Not a member yet? Register   Sign In
same code in two functions
#2

[eluser]meigwilym[/eluser]
Hi Juve,

Any SQL should be in a model. A controller can call the model and get its data, and then pass it to a view file.

If you take a look at Derek Jones' excellent blog tutorial, it should give you a good grounding in the MVC process:

http://codeigniter.com/tutorials/watch/blog/

Regards,

Mei


Messages In This Thread
same code in two functions - by El Forum - 10-15-2008, 02:36 AM
same code in two functions - by El Forum - 10-15-2008, 02:54 AM
same code in two functions - by El Forum - 10-15-2008, 12:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB