CodeIgniter Framework

462 views
361 views

Published on

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
462
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
17
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

CodeIgniter Framework

  1. 1. Disclaimer: This presentation is prepared by trainees ofbaabtra as a part of mentoring program. This is notofficial document of baabtra –Mentoring PartnerBaabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt .Ltd
  2. 2. NiyazKannancheryniyazofficial@gmail.comtweetboyNiyazsky+91 9746 049 048
  3. 3. Intro of CodeIgniterCodeIgniter (CI) is one of popular php framework. If you are already building PHPApplication, CodeIgniter will help you to do it better and more easily. WithCodeIgniter, you can save time, make your web more robust, your code will beeasier to read and maintenance. It is free, lightweight, and simple to install..With CodeIgniter, you can cut down the amount of code you need to type. This isnot just good for lazy, but: less type, fewer mistake, and less time for spenddebugging.
  4. 4. ModelViewController
  5. 5. CI Database ConfigurationSearch Google CodeIgniter or http://ellislab.com/codeigniter | Copy to ServerChange Default Controller | Config->routers -> Default ControllerCalling a Function to load | $this->functionname();
  6. 6. ModelsModel-------<?phpclass Math extends CI_Model{public function add(){return 1+1}}Controller---------public function addStuff(){$this->load->model("math");$this->math->add();}$this->addStuff();
  7. 7. How to Pass to ViewsController View
  8. 8. Data Passing to MVC [1/3]Controller
  9. 9. Data Passing to MVC [2/3]Model
  10. 10. Data Passing to MVC [3/3]View
  11. 11. URLs |mod_rewrite | URIs sCreate file .htaccess | Open and Correct Rewrite BaseCheck rewrite module is on in Local Apache ServerLast Open -> Config Folder -> Config-> remove index.phphttps://github.com/EllisLab/CodeIgniter/wiki/Removing-index.php-in-codeigniter-xampp-for-windows
  12. 12. Connecting DataBaseOpen -> Config Folder -> autoload->Create the DatabaseOpen database.php within CodeIgnitersystemapplicationconfig. Set config like below:
  13. 13. Get Value from Database [1/3]Controller
  14. 14. Get Value from Database [2/3]Model
  15. 15. Get Value from Database [3/3]View
  16. 16. Insert Value in Database [1/2]ControllerOR
  17. 17. Insert Value in Database [2/2]ModelOR
  18. 18. Update Value in Database [1/2]ControllerOR
  19. 19. Update Value in Database [2/2]ModelOR
  20. 20. Delete Value from Database [1/2]Controller
  21. 21. Delete Value from Database [2/2]Model
  22. 22. QUESTIONS SECTION
  23. 23. If this presentation helped you, please visit ourpage facebook.com/baabtra and like it.Thanks in advance.www.baabtra.com | www.massbaab.com |www.baabte.com

×