phpeveryday.com

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


CodeIgniter: Choosing a Data From GET

Tag: CodeIgniter, framework, mvc, database, GET   Category: PHP Framework
post: 26 Jan 2008 read: 2,378


CodeIgniter Step By Step Tutorial: At previous tutorial, we learn show a data. But we have define ID that we want to show. In this post, we learn how to show a data that ID defined from GET.

For model: Open "employee_model.php" within CodeIgniter\system\application\models. Add following function:

codeigniter model

For Controller: Open "employee.php" within CodeIgniter\system\application\controllers. Add following function:

codeigniter controller

Now, test it. Point your browser to http://localhost/CodeIgniter/index.php/employee/get/2.

codeigniter result



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

1 Responses to CodeIgniter: Choosing a Data From GET:

This document was written perfectly well! It is concise, direct-to-the-point, and consistent. Also, the visual aids are very helpful. I personally think that the author is gifted in communicating knowledge.

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


615
posting