Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Introduccion al Akelos Php Framework

7,482 views

Published on

Presentación del Akelos PHP Framework en la primera PHP Conference celebrada en Barcelona el 23 de Febrero de 2008.

Published in: Technology
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/qURD } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/qURD } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/qURD } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/qURD } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/qURD } ......................................................................................................................... Download doc Ebook here { https://soo.gd/qURD } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Introduccion al Akelos Php Framework

  1. 1. Introducción al Akelos PHP Framework Bermi Ferrer
  2. 2. …en esta presentación • Introducción • Componentes disponibles • Anatomía de una aplicación Akelos • Ronda de preguntas
  3. 3. Modelo Vista Controlador
  4. 4. Controlador
  5. 5. Controlador • Actúa ante peticiones de usuarios para crear, mostrar, actualizar o borrar un objeto (Ej. Post)
  6. 6. Controlador • Actúa ante peticiones de usuarios para crear, mostrar, actualizar o borrar un objeto (Ej. Post) • Responde renderizando una vista (parseando una plantilla) o redirigiendo a otra acción.
  7. 7. Modelo
  8. 8. Modelo • Implementa las normas del negocio mediante clases como Usuario, Comentario, Proyecto
  9. 9. Modelo • Implementa las normas del negocio mediante clases como Usuario, Comentario, Proyecto • Mantiene los datos y la lógica unidos: Un proyecto tiene un título y sabe si está activo.
  10. 10. Modelo • Implementa las normas del negocio mediante clases como Usuario, Comentario, Proyecto • Mantiene los datos y la lógica unidos: Un proyecto tiene un título y sabe si está activo. • Representa las relaciones del modelo. Un Post tiene muchos Comentarios y pertenece a un Autor
  11. 11. app/models/post.php
  12. 12. Vista
  13. 13. Vista • Representación de los modelos en HTML
  14. 14. Vista • Representación de los modelos en HTML • Lógica avanzada dentro de helpers
  15. 15. Vista • Representación de los modelos en HTML • Lógica avanzada dentro de helpers • Sintags como lenguaje de plantillas o PHP seguro.
  16. 16. Flujo de peticiones /posts/show/3 1) Petición /index.php? Navegador Router controler=posts& action=show&id=3 2) Dirige hacia 1. Configuración 6) Respuesta Dispatcher 2. Instanciar controlador. 3) Crea 5a) Render Action 4) CRUD Active Record Action View Active Record Active Record Controller 5b) Redirige
  17. 17. AkActionController
  18. 18. AkActionController • Acciones agrupadas en el controlador Las acciones son métodos y no objetos, métodos auxiliares (helpers) compartidos.
  19. 19. AkActionController • Acciones agrupadas en el controlador Las acciones son métodos y no objetos, métodos auxiliares (helpers) compartidos. • Proceso Asignaciones y HTTP Status headers.
  20. 20. AkActionController • Acciones agrupadas en el controlador Las acciones son métodos y no objetos, métodos auxiliares (helpers) compartidos. • Proceso Asignaciones y HTTP Status headers. • Redirección Url, ruta, accion, controlador
  21. 21. AkActionController • Acciones agrupadas en el controlador Las acciones son métodos y no objetos, métodos auxiliares (helpers) compartidos. • Proceso Asignaciones y HTTP Status headers. • Redirección Url, ruta, acción, controlador • Filtros Cadena de proceso, separación de responsabilidades. - Antes: Autentificación, Caché, Auditorías - Después: Compresión de la salida
  22. 22. AkActiveRecord
  23. 23. AkActiveRecord • Mapeado (DRY) Create, Read, Update, Destroy.
  24. 24. AkActiveRecord • Mapeado (DRY) Create, Read, Update, Destroy. • Asociaciones Cardinalidad, Conveniencia, Cache.
  25. 25. AkActiveRecord • Mapeado (DRY) Create, Read, Update, Destroy. • Asociaciones Cardinalidad, Conveniencia, Cache. • Validaciones Basadas en atributos, save/create/update.
  26. 26. AkActiveRecord • Mapeado (DRY) Create, Read, Update, Destroy. • Asociaciones Cardinalidad, Conveniencia, Cache. • Validaciones Basadas en atributos, save/create/update. • Callbacks Observer, ciclo de vida completo.
  27. 27. AkActiveRecord • Mapeado (DRY) Create, Read, Update, Destroy. • Asociaciones Cardinalidad, Conveniencia, Cache. • Validaciones Basadas en atributos, save/create/update. • Callbacks Observer, ciclo de vida completo. • Comportamientos Versioned, NestedSet,Tree, List.
  28. 28. AkActionView
  29. 29. AkActionView • PHP limitado PHP directamente en las vistas
  30. 30. AkActionView • PHP limitado PHP directamente en las vistas • Template Languages Sintags, Smarty …
  31. 31. Sintags
  32. 32. Sintags PHP
  33. 33. Sintags PHP
  34. 34. Sintags PHP
  35. 35. Sintags PHP
  36. 36. Sintags PHP
  37. 37. Sintags PHP
  38. 38. AkActionView • PHP limitado PHP directamente en las vistas • Template Languages Sintags, Smarty … • Asignaciones Variables de instancias compartidas
  39. 39. AkActionView • PHP limitado PHP directamente en las vistas • Template Languages Sintags, Smarty … • Asignaciones Variables de instancias compartidas • •Helpers Render de modelos fáciles • Formularios: campos texto, selects… • Textile, Markdown, UTF-8, Sanitize • AJAX
  40. 40. Filosofía Akelos
  41. 41. Filosofía Akelos • Convenciones antes que configuraciones Configuración mínima, mucha reflexión y valores predeterminados de calidad.
  42. 42. Filosofía Akelos • Convenciones antes que configuraciones Configuración mínima, mucha reflexión y valores predeterminados de calidad. • Conformidad con los regalos El cableado mágico se basa en estructuras comunes.
  43. 43. Filosofía Akelos • Convenciones antes que configuraciones Configuración mínima, mucha reflexión y valores predeterminados de calidad. • Conformidad con los regalos El cableado mágico se basa en estructuras comunes. • Invitación a las buenas prácticas Esqueleto de tests unitarios y de integración generados automáticamente.
  44. 44. ¿Diferencias con Rails?
  45. 45. ¿Diferencias con Rails? • PHP vs. Ruby
  46. 46. ¿Diferencias con Rails? • PHP vs. Ruby • Drag & Drop vs. Deployment
  47. 47. ¿Diferencias con Rails? • PHP vs. Ruby • Drag & Drop vs. Deployment • i18n integrada vs. Plugin
  48. 48. ¿Diferencias con Rails? • PHP vs. Ruby • Drag & Drop vs. Deployment • i18n integrada vs. Plugin • Demasiadas alternativas vs. Rey en solitario
  49. 49. ¿Direfencias con otros frameworks en PHP? Realizado por Tomasz Piotrowski & Mateusz Wozniak Nicolaus Copernicus University - Poland http://fon.gs/php_on_rails
  50. 50. Más información • http://akelos.org • http://akelos.org/screencasts • http://akelos.org/docs • irc.freenode.net #akelos • http://trac.editam.com (port del Radiant CMS a Akelos)
  51. 51. ¿Preguntas?
  52. 52. Gracias SmallSquid Presentación disponible en la web del grupo de usuarios de PHP de Barcelona. http://phpbarcelona.org

×