CodeIgniter: Setting Database Configuration



CodeIgniter Step By Step Tutorial: Previous post, we have build simple first application. That application do not use database. In this post, we try to set database for CodeIgniter.

please, open database.php within CodeIgniter\system\application\config. Set config like below:

Make sure, it match with your database.


Series this article:
CodeIgniter: Introduction to CodeIgniter Framework
CodeIgniter: Installation
CodeIgniter: Creating First Application at CodeIgniter
CodeIgniter: Creating and Sending Parameters Between Controller and View
CodeIgniter: Getting Parameters From GET
CodeIgniter: Setting Database Configuration
CodeIgniter: Preparing Database
CodeIgniter: Showing Simple All Data
CodeIgniter: Showing Simple One Data
CodeIgniter: Choosing a Data From GET


Tag: CodeIgniter, framework, database Category: PHP Framework Post : January 23rd 2008 Read: 9,164 Bookmark and Share

blog comments powered by Disqus