Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
El framework CakePHP
Search
Mariano Iglesias
August 21, 2008
Programming
64
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
El framework CakePHP
Jornadas Regionales de Software Libre 2008
Mariano Iglesias
August 21, 2008
Transcript
31 slides
CakePHP Framework de desarrollo para PHP Jornadas Regionales de Software
Libre @ 2008 Mariano Iglesias -
[email protected]
¿Quién soy yo? Programador primero, humano después Freelancer No escribí
ningún libro Core Developer de CakePHP
¿Sobre qué voy a hablar? Framework CakePHP Pensado para PHP
No es un port de Ruby on Rails MVC (Modelo Vista Controlador) ORM (Mapeo Objeto-Relacional) AJAX / XML / Web Services
CakePHP es el mejor Soporte PHP4 & PHP5 Mayor comunidad
en frameworks PHP Aprendizaje fácil Preparado para la empresa
Código que habla
¿Qué hay dentro de CakePHP? Modelos y Behaviors, asociaciones Validaciones
Datasources Componentes (Session, Email, Security) Autenticación (Acl, Auth) Paginación y Formularios Cache Engines Internacionalización
¿Qué hay dentro de CakePHP? Rutas vía Router Plugins Shell
Temas (Themes) Tests, tests, y más tests Test Suite Test Coverage en CakePHP El método CakePHP Core
Arquitectura de una torta Base de Datos MySQL, PostgreSQL, Oracle,
DB2, SQLite, PEAR, ADODB LDAP Web Service Modelos Behaviors Vistas Helpers HTML XML JSON Controladores Componentes Router
Cuando me siento vago Saliendo de un apuro: $ cake
bake Templates para bake El orden de los faroles altera el alumbrado Cuándo es útil Cuándo evitarlo
Empecemos a cocinar El Controlador El Modelo La Vista Reglas
Inflection en español joselorenzo.com.ve
El Modelo Algunas operaciones del modelo: find($tipo, $opciones) validate() save($datos)
del($id, $cascada)
La Vista Los Layouts app/views/layouts/default.ctp Los Themes Los Helpers $html->link($texto,
$url, $opciones)
El Controlador Libro libros/ver.ctp LibrosController
Probando el código
Relaciones entre Modelos libros editorial_id editoriales libros resumenes libro_id libros
comentarios libro_id libros autores_libros autor_id libro_id autores belongsTo hasOne hasMany hasAndBelongsToMany
Relaciones entre Modelos
Relaciones entre Modelos
Relaciones entre Modelos [Libro] => array( [id] => 1, [editorial_id]
=> 1 [titulo] => Trece runas [descripcion] => Una misteriosa secta escocesa, un conocido escritor... [created] => 2008-08-09 14:53:19 [modified] => 2008-08-09 14:53:19 ) [Editorial] => array( [id] => 1 [nombre] => Editorial Sudamericana [created] => 2008-08-09 14:53:18 [modified] => 2008-08-09 14:53:18 ) [Resumen] => array( [id] => 1, [libro_id] => 1, [rating] => 8 [resumen] => Interesante obra que explora un tema bastante popular... [created] => 2008-08-21 16:11:23 [modified] => 2008-08-21 16:11:23 ) [Comentario] => array( [0] => array( [id] => 1, [libro_id] => 1, [autor] => Mariano Iglesias [comentario] => Quizs el prlogo debiera haberse extendido [created] => 2008-08-21 16:11:25 [modified] => 2008-08-21 16:11:25 ) [1] => array( [id] => 2, [libro_id] => 1, [autor] => Claudia Mansilla [comentario] => @mariano: pienso lo mismo, pero aun asi me encanto [created] => 2008-08-21 16:11:25 [modified] => 2008-08-21 16:11:25 ) )
Behaviors: Containable
Behaviors: Containable [Libro] => array( [id] => 1 [editorial_id] =>
1 [titulo] => Trece runas [descripcion] => Una misteriosa secta escocesa, un conocido escritor... [created] => 2008-08-09 14:53:19 [modified] => 2008-08-09 14:53:19 ) [Editorial] => array( [nombre] => Editorial Sudamericana [id] => 1 [Libro] => array( [0] => array( [titulo] => Trece runas [editorial_id] => 1 [id] => 1 ) [1] => array( [titulo] => Muerte de una asesina [editorial_id] => 1 [id] => 2 ) [2] => array( [titulo] => Hay unos tipos abajo [editorial_id] => 1 [id] => 3 ) ) ) [Resumen] => array( [resumen] => Interesante obra que explora un tema bastante ... [id] => 1 )
Formularios
Formularios
Paginado
Paginado
Paginado
Testeo en CakePHP
Shells en CakePHP
Shells en CakePHP
Más información El sitio: www.cakephp.org La documentación: book.cakephp.org Artículos: bakery.cakephp.org
Google: cakephp-es, cake-php IRC: #cakephp, #cakephp-es Proyectos: www.cakeforge.org
CakeFest Segunda Edición Lugar: Buenos Aires Fecha: primera semana de
Diciembre Anotate: www.cakefest.org
Se terminó ¿Preguntas? ¿Comentarios? ¡Disfruten la torta! Mariano Iglesias -
[email protected]
Jornadas Regionales de Software Libre @ 2008
More Decks by Mariano Iglesias
See All by Mariano Iglesias
Simple is Good, Complex is Bad
mariano
2
170
Disque
mariano
0
110
A future without frameworks
mariano
2
210
Procesando pagos: LO ESTÁS HACIENDO MAL
mariano
0
210
Go aka Golang
mariano
1
120
ElasticSearch: hacer un Google es una papa
mariano
0
81
Random tips that will save your project's life
mariano
0
57
node-db: La excusa perfecta para hablar de C++ y Node.js
mariano
0
90
Episodio VI - El retorno del freelancer
mariano
0
48
Other Decks in Programming
See All in Programming
graphql-ruby を Spinel で速くしようとした話
mtsmfm
0
140
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
260
baseline으로 마이그레이션, 리팩토링 안전하게 맡기기
fornewid
1
970
flutter_test のその先へ — Flutter アプリの LLM 機能に「評価」という品質保証を
kosukesaigusa
0
200
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
4
4k
Secure Your Coding Agent Like It’s Malware (v1.5) 🇬🇧 @Code.talks 2026
richargh
0
130
DroidKnights 2026 Android A2UI Jetpack Compose 기반의 안전한 AI UI 렌더링 - 박제창
itsmedreamwalker
1
230
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
170
私なりのハーネスエンジニアリング ~独自の言語処理系の開発を通して~
seosoft
0
200
地方こそサーバーレス — 10年続けた、顔が見えるチームで確かな基盤を / Serverless Matters Most in Regional Areas — 10 Years of Building Reliable Foundations with Close-Knit Teams
seike460
PRO
1
380
當我們開始不讀 Code - AI Agent 時代,Code Review 與 Clean Code 還剩下什麼?
jame2408
1
370
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
260
Featured
See All Featured
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
610
Marketing to machines
jonoalderson
1
6k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
How STYLIGHT went responsive
nonsquared
100
6.4k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
600
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
520
Between Models and Reality
mayunak
4
570
Fireside Chat
paigeccino
43
4.1k