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.
- First, we make controller, create a file name "hello.php" within: \system\application\controllers. Enter following code:

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

See, this flow:
| 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: 14,372 blog comments powered by Disqus |
