Posts Tagged with 'CodeIgniter'

The csrf_token is used for protection against Cross-Site Request Forgeries. This kind of attack takes place when a malicious website consists of a link, some JavaScript, or a form whose aim is to perform some …

Last updated 1 year, 10 months ago | 382 views

Tags:- PHP Django CodeIgniter

Codeigniter | where_in  The where_in() allows you to pass an array in the where clause. It generates a WHERE field IN ('item', 'item') SQL query. Syntax: $this->db->where('condition'); <?php $ids = array('1', '2', '3'); $this->db->from('users'); $this->db->where_in('id', …

Last updated 4 years, 6 months ago | 7200 views

Tags:- CodeIgniter

Codeigniter | List Databases supported By Codeigniter Following Databases are supported by Codeigniter Frameworks: Database Name Drivers to support Codeigniter MySQL MySQL (deprecated), MYSQLI and PDO drivers Oracle oci8 and PDO drivers PostgreSQL Postgre and …

Last updated 4 years, 9 months ago | 2162 views

Tags:- CodeIgniter

Codeigniter | routes  Routing rules are defined in your application/config/routes.php file.    In it, you'll see an array called $route that permits you to specify your own routing criteria. Routes can either be specified using …

Last updated 4 years, 9 months ago | 1342 views

Tags:- CodeIgniter

CodeIgniter | What is helpers | Load helper file Helper is simply a collection of function in a particular category which helps you with tasks. The helper file can be loaded in controller constructor, some …

Last updated 4 years, 9 months ago | 5593 views

Tags:- CodeIgniter

Codeigniter | Set timezone To set default timezone in Codeigniter, you can add the date_default_timezone_set() function in your application/config.php or index.php file. date_default_timezone_set('your timezone');   <?php // India timezone date_default_timezone_set('Asia/Kolkata'); ?>  

Last updated 4 years, 9 months ago | 4292 views

Tags:- CodeIgniter

Codeigniter | SET or GET config variables The config set_item() & item() functions are work for SET and GET a config variable in codeigniter   In Codeigniter, by default, all config variables are located at the “application/config/config.php” …

Last updated 4 years, 9 months ago | 3682 views

Tags:- CodeIgniter

Codeigniter | The default URL pattern In CodeIgniter, URLs are designed to be search-engine and user-friendly. CodeIgniter uses a segment-based approach rather than using a "query string" based approach. http://www.example.com/user/edit/rakesh The default URL pattern in …

Last updated 4 years, 9 months ago | 2191 views

Tags:- CodeIgniter

Codeigniter | Types of error logging There are three message types in Codeigniter: Error Messages These are actual errors, such as PHP errors or user errors. Debug Messages These are messages that assist in debugging. …

Last updated 4 years, 9 months ago | 1295 views

Tags:- CodeIgniter

Codeigniter | Include image, CSS, and js file In Codeigniter, we need to load URL helper in the controller and then use the base_url() function to load the resources. // loading script <script type='text/javascript' src="<?php …

Last updated 4 years, 10 months ago | 6039 views

Tags:- CodeIgniter

Cross-site scripting (XSS) Cross-site scripting (XSS) is a type of computer security vulnerability typically found in web applications. XSS enables attackers to inject client-side script into web pages viewed by other users. A cross-site scripting …

Last updated 5 years ago | 1317 views

Tags:- PHP CodeIgniter

Codeigniter | Remove index.php from URL in Codeigniter? The file index.php is the root file of Codeigniter. it contains setting code for CodeIgniter. So, when we redirect to other pages the URL comes with index.php …

Last updated 5 years, 1 month ago | 2114 views

Tags:- CodeIgniter