Welcome Guest, Not a member yet? Register   Sign In
Very New to Codeigniter need help
#8

(This post was last modified: 11-05-2016, 12:36 PM by Wouter60.)

First, learn the basics of CodeIgniter.
Controllers are for processing URL's. E.g. the url www.mysite.com/invoices/debts will call the debts function in the Invoices controller.
Models are for database actions, like getting records from a table. A function in an model will return a record or an array of records to the controller.
Views are for output. They consist of html-code, mixed with php. The php variables are passed by the controller to the view.

In short, controllers are the heart of your application. They collect data from a model or library, and they pass data to a view that will show you the end result in the browser.

To make life easier for us, please put your php code in a php code block. You will find a button for that at the top of the text editor field where you type your forum message. You should always make clear what type of file your code is in (controller, model, library, view, config file etc.).
Reply


Messages In This Thread
Very New to Codeigniter need help - by Jay01 - 11-04-2016, 10:17 PM
RE: Very New to Codeigniter need help - by Jay01 - 11-05-2016, 02:25 AM
RE: Very New to Codeigniter need help - by Jay01 - 11-05-2016, 07:58 AM
RE: Very New to Codeigniter need help - by Jay01 - 11-05-2016, 12:02 PM
RE: Very New to Codeigniter need help - by Wouter60 - 11-05-2016, 12:35 PM
RE: Very New to Codeigniter need help - by Jay01 - 11-05-2016, 11:03 PM
RE: Very New to Codeigniter need help - by Jay01 - 11-05-2016, 11:47 PM
RE: Very New to Codeigniter need help - by Xaruf - 07-29-2020, 01:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB