**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’)?>
Just put in the .htaccess file RewriteEngine on RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
How To Install Django 2 In Mac First, we need to install python3 in our system -> brew install python3 Now check the version of python -> python3 Install pip package management system. -> sudo easy_install pip Install virtualenv for python. -> sudo pip install virtualenv -> virtualenv ven -> cd venv -> source bin/activate Install Django 2 -> pip install django==2.0.3 check django2 version -> python -m django –version Create the Django project with…
1) What is Laravel? Laravel is a free open source “PHP framework” based on MVC design pattern. Laravel has inbuilt features like Eloquent ORM, Blade Template engine, Built-in command-line tool “Artisan”, database structure and build their migration. 2) What are the pros and cons of using the Laravel Framework? Built-in command-line tool “Artisan” for creating a code skeleton, database structure and build their migration.Laravel Framework has in-built lightweight blade template engine to speed up compiling…
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’] = FALSE; & Run SQL query CREATE TABLE IF NOT EXISTS `ci_sessions` ( `id` varchar(40) NOT NULL, `ip_address` varchar(45) NOT NULL, `timestamp` int(10) unsigned DEFAULT 0 NOT NULL, `data` blob NOT NULL, PRIMARY KEY (id), KEY `ci_sessions_timestamp` (`timestamp`) );
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]
<script> if (location.protocol != ‘https:’) { location.href = ‘https:’ + window.location.href.substring(window.location.protocol.length); } </script>
<script type=”text/javascript”> if ( document.domain.substring(0,4).toLowerCase() != ‘www.’ ) { window.location = document.URL.replace(“//”,”//www.”); } </script>
<div [ngSwitch]=”color”> <div *ngSwitchCase = “‘red'”> Red</div> <div *ngSwitchCase = “‘Blue'”> Blue</div> <div *ngSwitchCase = “‘Black'”> Black</div> <div *ngSwitchDefault>This is Default </div> </div>