18 Oct 2016

Installing Codeignitor on Xampp

Folder structure of Codeigntior


Step1):config base_url and index_page.
Path: application/config/config.php

$config['base_url'] = 'http://localhost/cig';

Open addresses in browser - http://localhost/cgi[project name = cgi] or localhost or localhost/xampp/

Welcome

Optional

Database: application/config/database.php

In Codeigniter Routing is very important. Default route for web application.
$route[‘default_controller’] = “Welcome”;
$route[‘404_override’] = ”;

Here I changed welcome to login
$route[‘default_controller’] = “login”;
$route[‘404_override’] = ”;

For handling the form data you have to ser TRUE instead of FALSE in config.php
Global XSS Filtering.
$config[‘global_xss_filtering’] = TRUE;

No comments:

Post a Comment