Successfully reported this slideshow.

Workshop SuBali - CodeIgniter

1,602 views

Published on

Pengenalan dasar-dasar CodeIgniter

Published in: Technology
  • Be the first to comment

Workshop SuBali - CodeIgniter

  1. 1. Workshop SuBali Dasar-dasar CodeIgniter Dasar-dasar OOP di PHP Aplikasi sederhana di CodeIgniter
  2. 2. About me <ul><li>PHPClasses.org december 2004 winner
  3. 3. Mambo CMS core developer, 2005 – 2008
  4. 4. Web Developer at Marketing Villas Ltd </li></ul><ul><li>@adisetiawan
  5. 5. [email_address]
  6. 6. http://ex3me.org </li></ul>
  7. 7. Definisi Web Framework Sekumpulan library untuk mempermudah pengembangan website. Ciri-ciri: <ul><li>Code reuse
  8. 8. Architectural paterns </li></ul>
  9. 9. Fitur Web Framework <ul><li>Patern (MVC)
  10. 10. Database abstraction layer (ActiveRecord,ORM)
  11. 11. Template system
  12. 12. Security
  13. 13. Caching
  14. 14. URL Mapping/Routing </li></ul>
  15. 15. Beberapa PHP Framework <ul><li>Zend Framework
  16. 16. Symfony
  17. 17. CodeIgniter
  18. 18. Yii
  19. 19. CakePHP </li></ul>
  20. 20. Mengapa CodeIgniter ? <ul><li>Mudah dipelajari utk pemula
  21. 21. Fleksibel (too flexible ?)
  22. 22. MVC wannabe
  23. 23. Library cukup lengkap
  24. 24. Komunitas besar
  25. 25. Proven di production </li></ul>
  26. 26. Resources <ul><li>User guide : http://codeigniter.com/user_guide
  27. 27. PHP Manual: http://www.php.net/manual/en/index.php </li></ul>
  28. 28. Dasar OOP di PHP <ul><li>Class dan object
  29. 29. Property
  30. 30. Method
  31. 31. Constructor/Deconstructor
  32. 32. Visibility: Public, Private, Protected
  33. 33. Static
  34. 34. Inheritence </li></ul>
  35. 35. MVC Pattern
  36. 36. Controller Meng handle request dan memproses serta meneruskan ke model kemudian memformat hasil di views. http://domain/index.php/product/shoes/param1/param2 product = controller shoes = function/method param1 = URI segment param2 = URI segment ...
  37. 37. Model Jembatan antara controller dan data/database. <ul><li>CRUD (create,read,update,delete)
  38. 38. Auto loading </li></ul>
  39. 39. Views Memformat hasil dari model menjadi sebuah output. <ul><li>Template/layout: HTML, XML, plaintext
  40. 40. Multiple: header, footer, sidebar, dsb </li></ul>
  41. 41. URL Route Merubah default URL dengan pattern tertentu mengunakan wildcard atau regex /product/viewdetail/1 > /product/1 /page/contact > /contact-us.html
  42. 42. CodeIgniter Library Kumpulan file-file pustaka yang bisa langsung digunakan <ul><li>Database layer
  43. 43. Session
  44. 44. Security
  45. 45. Email
  46. 46. Validasi form
  47. 47. Dan banyak lagi.. </li></ul>
  48. 48. CodeIgniter Helpers Kumpulan fungsi-fungsi kecil untuk task tertentu <ul><li>Date
  49. 49. CAPTCHA
  50. 50. Download
  51. 51. Read/write file
  52. 52. Dan banyak lagi </li></ul>
  53. 53. Extending CodeIgniter Tidak puas dengan CodeIgniter ? <ul><li>Menambahkan library baru
  54. 54. Modifikasi fungsi library yg ada
  55. 55. Mengganti/replace library yg ada
  56. 56. Extend/replace core classes
  57. 57. Hook points </li></ul>
  58. 58. MARI KITA CODING :)

×