Codeigniter En

2,511 views

Published on

The presentation i gave about CodeIgniter at ROSDEV in Bucharest on the 12th of April 2008

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,511
On SlideShare
0
From Embeds
0
Number of Embeds
49
Actions
Shares
0
Downloads
165
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Codeigniter En

  1. 1. CodeIgniter ROSDEV, April 12th 2007
  2. 2. me <ul><li>My name is Bodi Zsolt </li></ul><ul><ul><li>I’m from Tg. Mures </li></ul></ul><ul><ul><li>I’m a student(part-time) @ UPM </li></ul></ul><ul><ul><li>Lead Developer @ MedeeaWeb Works (medeaaweb.com) </li></ul></ul><ul><ul><li>CTO Off/On Studio (www.offonstudio.com) </li></ul></ul><ul><ul><li>5 months of CI exp. </li></ul></ul>
  3. 3. The way we did sites before (the “good” old times)
  4. 4. Like this?
  5. 5. Or maybe like this?
  6. 6. It’s time for something different http://codeigniter.com/
  7. 7. CodeIgniter to the rescue <ul><li>What is it? </li></ul><ul><ul><li>CI is a toolkit for people who build web application using PHP </li></ul></ul><ul><li>is light we ight </li></ul><ul><li>is fast </li></ul><ul><ul><li>We challenge you to find a framework that has better performance than CodeIgniter </li></ul></ul><ul><li>MVC </li></ul>
  8. 8. Let’s talk about MVC ¿Dónde está el baño?
  9. 9. MV what?
  10. 10. MVC <ul><li>View (views/frog_count.php) </li></ul><ul><ul><li><html> </li></ul></ul><ul><ul><li><body> </li></ul></ul><ul><ul><ul><li><h1> You’ve <?=$froggies;?> items in list</h1> </li></ul></ul></ul><ul><ul><ul><li></body> </li></ul></ul></ul><ul><ul><li></html> </li></ul></ul><ul><li>Controller (controllers/my_controller.php) </li></ul><ul><ul><li>function total_frogs () { </li></ul></ul><ul><ul><ul><li>$this->load->model(“frogs”); </li></ul></ul></ul><ul><ul><ul><li>$number_of_frogs = $this->frogs->count_frogs(); </li></ul></ul></ul><ul><ul><ul><li>$data[‘froggies’] = $number_of_frogs; </li></ul></ul></ul><ul><ul><ul><li>$this->load->view(“frog_view”, $data); </li></ul></ul></ul><ul><ul><li>} </li></ul></ul><ul><li>Model (models/frogs.php) </li></ul><ul><ul><li>function count_frogs() { </li></ul></ul><ul><ul><ul><li>$this->db->where(“type”,”frog”); </li></ul></ul></ul><ul><ul><ul><li>$this->db->from(“animals”); </li></ul></ul></ul><ul><ul><ul><li>$query = $this->db->get(); </li></ul></ul></ul><ul><ul><ul><li>return $query->num_rows(); </li></ul></ul></ul><ul><ul><ul><li>} </li></ul></ul></ul>Model View Controller
  11. 11. Cum se apeleaza? <ul><li>http://www.my_server.com/index.php/my_controller/my_frogs </li></ul>Your server controller: System/application/controllers/my_controller.php Method of a controller
  12. 12. Demo (a demo is worth at leas t 1000 slides )
  13. 13. Classes Benchmarking Calendaring Database Email Encryption File Uploading FTP HTML Table Image Manipulation Input and Security Pagination Session Trackback Template Parser Unit Testing URI User Agent Validation
  14. 14. Helpers Array Cookie Date Download File Form HTML Security Smiley String Text Typography URL XML
  15. 15. Links <ul><li>www.codeigniter.com </li></ul><ul><li>www.kohanaphp.com(PHP5) </li></ul><ul><li>codeigniter.com/wiki/ </li></ul><ul><li>www.rapyd.com(toolkit for toolkit) </li></ul>
  16. 16. Questions? <ul><li>slide s & demo: </li></ul><ul><ul><li>http://www.widgetdev.org/rosdev0 8 / </li></ul></ul>

×