CodeIgniter: Creating First Application at CodeIgniter



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


Tag: CodeIgniter, framework, MVC Category: PHP Framework Post : January 19th 2008 Read: 19,267 Bookmark and Share

blog comments powered by Disqus