phpeveryday.com

The best tutorial of php, php framework, php strategies, object oriented oriented,


CodeIgniter: Creating First Application at CodeIgniter

Tag: CodeIgniter, framework, MVC   Category: PHP Framework
post: 19 Jan 2008 read: 3,267


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. We ever talk about MVC at here. Hope you read that posting if you still don't know about MVC. Although that post about Joomla, it doesn't matter. It is same.

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

    hello class in codeigniter controller

  2. Next step, make a view. Create you_view.php within CodeIgniter\system\application\views. Enter just simple line code like:
    Hello, you!
  3. Now, test your application. Point your browser to http://localhost/CodeIgniter/index.php/Hello/you You should get like this:

    hello application at codeigniter

See, this flow:

flow at codeigniter


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

| Give Your Opinion | Recommend
Share and Bookmark to: These icons link to social bookmarking sites where readers can share and discover new web pages.
digg del.icio.us technorati Ma.gnolia BlinkList

Recommended articles by other readers:
Web Services: How PHP Kiss VB.NET? (Part 1)
Chart: How to Build Cool Animation Real Time Chart
Joomla: Fast Road to Understand Component Programming
Email: Send Attachement Mail
mod_rewrite - Part 1: create your "fantasy" URL

What do You Think?
Your Name *:
Email *:
(Will not be published)
Website/URL:
Your Comment *:
* Required


615
posting