Step 1: Create Google App In this step, we have to create google app and then we will use google key and google secret…
Step 1: First you need to go inside of the public folder and copy index.php and .htaccess file then replace to root directory index.php…
Codeigniter 3 CRUD Operation with MySQL Database with example In this tutorial, I will cover CRUD operation with MySQL database with example in Codeigniter…
1) Configure database connection Application/config/database.php Hostname, Username, Password, Database name $db[‘default’] = array( ‘dsn’ => ”, ‘hostname’ => ‘localhost’, ‘username’ => ‘root’, ‘password’ =>…
RewriteEngine on RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} (sale|success|cancel) [NC] RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] RewriteCond %{HTTPS} on RewriteCond %{REQUEST_URI} !(static|sale|success|cancel) [NC] RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]…
Steps to remove index.php from URL 1. Change the index_page configuration like $config[‘index_page’] = ‘’; 2. Create .htaccess file and add the following code…
**Set flash data in controller** message – flash data session name. $this->session->set_flashdata(‘message’, ‘Sucessfully updated.’); Read flash data(Pass in view with bootstrap alert) session->flashdata(‘message’)){?> session->flashdata(‘message’)?>
change your application->config->config.php and set $config[‘sess_driver’] = ‘database’; $config[‘sess_cookie_name’] = ‘ci_session’; $config[‘sess_expiration’] = 7200; $config[‘sess_save_path’] = ‘ci_sessions’; $config[‘sess_match_ip’] = FALSE; $config[‘sess_time_to_update’] = 300; $config[‘sess_regenerate_destroy’]…
Create a .htaccess file and put code within htaccess. RewriteEngine on RewriteCond $1 !^(index\.php|resources|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L,QSA]
if you allow true in $config[‘csrf_protection’] = true; within config file and you are also add autoload form than we can use. Step 1.…