Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

Codeigniter En

2.534 visualizaciones

Publicado el

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

Publicado en: Tecnología
  • Sé el primero en comentar

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 ( </li></ul></ul><ul><ul><li>CTO Off/On Studio ( </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
  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> </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> </li></ul><ul><li> </li></ul><ul><li> </li></ul><ul><li> for toolkit) </li></ul>
  16. 16. Questions? <ul><li>slide s & demo: </li></ul><ul><ul><li> 8 / </li></ul></ul>