Tutorial by Examples

Starting from a fresh installation of Codeigniter 3, here is a simple way to start with an Hello World application, to break the ice with this solid PHP framework. To do this you can start creating the view that we want to be shown for our Hello World app. We are going to put it in your applicatio...
Now we'll try going for a little more complex example, using the capabilities of the controller to fill in the view. Here is our view: /application/views/hello_world.php <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <titl...
Let's say that we want to have an alternative greeting that is accessible through a different URL. We might create a new function or even a new controller for that, but a best practice is to optimize what we already have, to make it work at it's best! To do this, we'll keep the same view as in the ...

Page 1 of 1