CodeIgniter

RMAG news

Code Igniter is an opensource PhP framework that was built in 2006, by Ellis Labs, on the Model-View-Controller (MVC) development pattern.

When compared to other PhP frameworks, CodeIgniter is known for its speed. It allows the possibility to write code more quickly with it’s vast libraries and use of helpers than from scratch.

FEATURES

Model-View-Controller Architecture:
The use of MVC that separates logic and presentation components allows developers to build dynamic websites more efficiently.

Form and Data Validation:
There are easy to use methods to validate form data.

Error Handling:
There are 3 message types-
*Error Messages
*Debugging Messages
*Informational Messages

Security:
There are built in protections for CSRF and XSS attacks.

Configuration:
It has a straightforward approach to install with minimal configuration.

Examples:
Query binding with named placeholders

$sql = “SELECT * FROM users WHERE username = :username AND password = :password”;
$this->db->query($sql, array(‘username’ => $username, ‘password’ => $password));

Escaping user input

$username = $this->db->escape($username); $password =
$this->db->escape($password); $sql = “SELECT * FROM users WHERE username =
$username AND password = $password; $this->db->query($sql);

Once you download CodeIgniter from its official website you can configure it to work with your local development environment.

Any PhP developer should consider the use of CodeIgniter for their web application development because of its speed, simplicity and security features.

REFERNCES:
1)https://codeigniter.com/userguide2/general/errors.html
2)https://www.webomindapps.com/codeigniter-security-best-practices.html
3)https://en.wikipedia.org/wiki/CodeIgniter#:~:text=License%20Awareness%20Week.-,History,EllisLab%20on%20February%2028%2C%202006.

Leave a Reply

Your email address will not be published. Required fields are marked *