Skip to content

This is the Codigniter MVC based PHP framework project to create simple blog website.

License

Notifications You must be signed in to change notification settings

pawansa3/codigniter-mvc-framework-php-blog

Repository files navigation

CodeIgniter 2

Open Source PHP MVC Framework

Basic Setup:

MYSQL PART:

Go to MySQL or open phpMyadmin and create a database name called 'codeigniter_blog_db' and then import the codeigniter_blog_db.sql file into to the database.

Now run xampp or wamp server and visit: http://localhost/codeigniter

Note: work fine with PHP 5 version. above php 5 it will give error.

CODEIGNITER CONFIGURATIONS:

  1. First, open the database.php file inside /codigniter/application/config/database.php and change the mysql hostname, username and password as per your database server configuration:
$db['default'] = array(
	'dsn'	=> '',
	'hostname' => 'localhost',//change this as per your server
	'username' => 'root',//change this as per your server
	'password' => '', //change this as per your server
	'database' => 'codeigniter_blog_db',
	'dbdriver' => 'mysql',
	'dbprefix' => '',
	'pconnect' => FALSE,
	'db_debug' => (ENVIRONMENT !== 'production'),
	'cache_on' => FALSE,
	'cachedir' => '',
	'char_set' => 'utf8',
	'dbcollat' => 'utf8_general_ci',
	'swap_pre' => '',
	'encrypt' => FALSE,
	'compress' => FALSE,
	'stricton' => FALSE,
	'failover' => array(),
	'save_queries' => TRUE
);
  1. Then, open config.php file inside /codigniter/application/config/config.php and set the $config['base_url'] to $config['base_url'] = 'http://localhost/codeigniter/';

About

This is the Codigniter MVC based PHP framework project to create simple blog website.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages