• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
CodeIgniter in PHP
 

CodeIgniter in PHP

on

  • 5,079 views

 

Statistics

Views

Total Views
5,079
Views on SlideShare
5,079
Embed Views
0

Actions

Likes
2
Downloads
105
Comments
1

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • As a one PHP Developer, This information is very much useful for me. It will help me to get more knowledge about codeIgniter.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    CodeIgniter in PHP CodeIgniter in PHP Document Transcript

    • Introducing CodeIgniter Framework in PHPIn this article you will see how use MVC in PHP through the CodeIgniterframework. CodeIgniter is an Application Development Framework - atoolkit. Using CodeIgniter you can develop projects much faster than withthe core PHP. The CodeIgniter framework is fully based on the MVCarchitecture. CodeIgniter lets you creatively focus on your project byminimizing the amount of code needed for a given task. You can downloadthe CodeIgniter framework from: "http://codeigniter.com/".How to Install CodeIgniterFirst of all extract the zip file of CodeIgniter. After extracting the CodeIgniterfile you will paste in the following position "c:wampwww" (paste) orc:xampphtdocs (paste).Set URL in CodeIgniterFor setting the URL in CodeIgniter go to the local disk C->wamp->www->CodeIgniter->open CodeIgniter->open application folder->open configfolder->open config.php file->write the following URL:$config[base_url]=http://localhost/CodeIgniter/;Creating the First Application in the CodeIgniter Framework<?phpclass Hello extends CI_Controller{ public function index() { echo "Hello Vineet !!"; }}?>This file is to be saved inc:wampwwwCodeIgniterapplicationcontrollershello.php. HereCI_Controller is the predefined class which is stored in thec:wampwwwCodeIgnitersystemcorecontroller.php. www.vineetsaini.wordpress.com
    • OutputOpen the web browser and write the following URL:"http://localhost/CodeIgniter/index.php/hello/"Create Second Application in CodeIgniter FrameworkIf you want to make your own function in CodeIgniter then you can do thatlike this:<?phpclass Hello extends CI_Controller{ public function index() { echo "Hello Vineet !!"; } function test() { echo "Vineet Kumar Saini is MCA Qualified!!"; }}?>This file is to be saved inc:wampwwwCodeIgniterapplicationcontrollershello.php. www.vineetsaini.wordpress.com
    • OutputOpen the web browser and write the following URL:"http://localhost/CodeIgniter/index.php/hello/test/"Create Application Using Views<?phpclass Hello extends CI_Controller{ public function index() { echo "Hello Vineet !!"; } function test() { $this->load->view (you); //you is the views file }}?>This file is to be saved inc:wampwwwCodeIgniterapplicationcontrollershello.php.Now we will create a view file like this: www.vineetsaini.wordpress.com
    • <?phpecho "Vineet Kumar Saini is a Software Developer!!";?>This file is to be saved inc:wampwwwCodeIgniterapplicationviewsyou.php.OutputOpen the web browser and write the following URL:"http://localhost/CodeIgniter/index.php/hello/test/"ConclusionSo in this article you saw how to create an application in the CodeIgniterframework in PHP. Using this article one can easily understand creation ofthe application in the CodeIgniter framework in PHP. www.vineetsaini.wordpress.com