CodeIgniter is an open source web application framework for use in building dynamic web sites with PHP. It enables developers to develop projects much faster than...writing code from scratch, by providing a rich set of libraries for commonly needed tasks, as well as a simple interface and logical structure to access these libraries. CodeIgniter is loosely based on the popular Model-View-Controller development pattern. CodeIgniter is most often noted for its speed when compared to other PHP frameworks.
CodeIgniter 4: Add Nullable Field in Migration
7 Mar, 2024
To add a field that can have a value of null in a CodeIgniter 4 migration, you can specify the field as nullable. The 'null' => true option in the field definition specifies that the field can...
CodeIgniter 4: Save to log
26 Feb, 2024
In this snippet we're using log_message() to log messages of different severity levels (error, debug, info). Depending on the condition, we log different messages. Ensure that logging is enabled and...
CodeIgniter 4: Add migration file
14 Feb, 2024
To add a migration file in CodeIgniter 4, you can use the command-line interface provided by CodeIgniter's CLI tool called spark.
CodeIgniter 3: Using mssql with PHP 7 on Linux
6 Jul, 2019
Connect to mssql server in CodeIgniter 3. This will probably apply on any php version, just I had v 7.3 at this point. The setup is really easy, I even used mssql on my linux machine locally.
Selecting from multiple tables using ActiveRecord in CodeIgniter
22 Sep, 2011
Selecting from multiple tables using ActiveRecord in CodeIgniter. Basics are the same as in query. You select multiple tables, relate tables and select the output fields.
Converting CodeIgniter Query to JSON
24 Sep, 2010
This tutorial shows you how you can generate JSON from SQL data that comes from model. Converting query to JSON is really simple in PHP and even simpler in CodeIgniter.
CodeIgniter Login With Google Using OpenID
20 Sep, 2010
How to make login system for CodeIgniter using OpenID. This example uses Google Accounts for login.
CodeIgniter - Cache Any Code Into a File
19 Sep, 2010
This tutorial shows you how you can cache code in CodeIgniter, by saving string or plain text into a file.
Generate RSS 2.0 Feeds with CodeIgniter
22 Aug, 2010
In this tutorial we will make RSS 2.0 feeds from latest posts in your site.
AJAX Form Submission in CodeIgniter With jQuery
26 Jun, 2010
Some knowledge of CI and OOP could be handy. This tutorial shows how to submit Ajax forms in CodeIgniter using jQuery. With optional jQuery UI feedback bubbles.
Integrating WYSIWYG TinyMCE into CodeIgniter
16 Jun, 2010
This tutorial shows you how to set up WYSIWYG TinyMCE in CodeIgniter. Both versions standalone and jQuery. It's really easy, most time takes the sample code tweaking.