How to route a URL in CodeIgniter

A route is a way to remapping, makes more meaningful and SEO friendly URLs. The visitor views the newly generated page URL and the route calls the defined action URL which will be hidden from the visitors.

In CodeIgniter, a URL consists of controller-name/method-name but you can manipulate it by declaring routing.

All routed actions will be written on the specific file.

How to route a URL in CodeIgniter

Read more

How to Handle Session in Codeigniter

Handle session is very important when creating a member-based website where the user needs to register and login to their account to access website content.

With the help of a session, it is easier to identify the user and display the content accordingly.

In Codeigniter, require the loading session library to start work with Session. There are inbuilt methods are available that makes easier to handle session operations.

How to handle Session in Codeigniter

Read more

Update records in Database Table with CodeIgniter

The Codeigniter allows us to perform the database action like – select, insert, update, and delete with the minimal script.

The $this->db->update() method is used for update existing record. It takes table name and an array or object as the parameter.

In the demonstration, I am listing the user’s list with the edit option. Show the update form on edit option-click.

Update records in Database Table with CodeIgniter

Read more