Basic steps to start codeIgniter application

Basic steps to start codeIgniter application
1. Download the codeigniter from official website. https://www.codeigniter.com/
2. Downloaded folder extract and rename the folder name and place in side htdocs folder in your local server.
3. See the application folder, here you can observe MVC structure like controllers,models and views.
4. Inside Application folder that has config folder available , you have to config base_url and index_page.
Path: application/config/config.php
5. Configure your web application databse details at : application/config/database.php
6. In Codeigniter routing is very important. Default route for web application.
$route[‘default_controller’] = “Welcome”;
$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;

7. Set the autoload libraries,database and helpers like form,url…

Advertisement