Begin MVC with CodeIgniter (PHP) – Sample Login

diluk's techtalk

Source File : Click here to download (Locate the extracted folder inside wamp->www folder and run by localhost)

CodeIgniter is a simple yet powerful MVC(Model-View-Controller) framework for PHP. In this post I’m gonna share you a simple login app that is developed using this framework to give you a basic understanding on how to start developing with this. This example will focus on handling controllers to serve the user with different views as well as passing data from the views to controllers and validate/process them inside the controller using functions.


01. First what you should do is setting up the base url inside application->config->config.php
(You need to give the server path that your project resides) In my case I have set my base url as follows,
$config[‘base_url’] = ‘http://localhost:8080/my_ci_app/’;
02. In the index function of welcome.php, inside application->controllers, you set the view that the user should see at the…

View original post 161 more words


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s