CodeIgniter-1: Creating First Application

Posted: November 4, 2010 in CodeIgniter, PHP
Tags: ,

CodeIgniter Step By Step Tutorial: As usually, we will create first application by build hello application. But, before write code, we must know that we will build application use Model Controller View (MVC) pattern.

  1. First, we make controller, create a file name “hello.php” within: \system\application\controllers. Enter following code:


2. Next step, make a view. Create you_view.php within CodeIgniter\system\application\views. Enter just simple line code like:

3. Now, test your application. Point your browser to http://localhost/CodeIgniter/index.php/Hello/you You should get like this:

See, this flow:

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s