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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Mariano Iglesias
August 21, 2008
Programming
65
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
220
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
82
Random tips that will save your project's life
mariano
0
59
node-db: La excusa perfecta para hablar de C++ y Node.js
mariano
0
91
Episodio VI - El retorno del freelancer
mariano
0
48
Other Decks in Programming
See All in Programming
The Cost of the DOM
ypresto
2
210
疎結合とは何か?ソフトウェア設計における結合バランスについて考える #phpcon_niigata
kajitack
2
420
はじめてのPLATEAU
nokonoko1203
1
670
Claude Code ハーネスDeep Dive – 君はどこまで制御する? -
takateeen_knj
6
6.3k
imagewebp()の向こう側: WebPはなぜ JPEG・PNGより軽いのか
yuzneri
0
150
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
270
Getting Started with Vibe Coding
miccheng
0
250
Crash Auto Pipelines
veronikapj
1
450
protojson における文字化けの扱い
kazuki1023
0
460
Proxmox x Talos Linux x Terraform で実現するなんかいい感じの Kubernetes クラスタ / A Sleek Kubernetes Cluster Powered by Proxmox, Talos Linux, and Terraform
nnaka2992
0
300
RaspberryPi 5で軽くはじめるk3sとtailscaleを用いたホームサーバー構築 (1)
nasum
0
440
SODA - FACT BOOK(EN)
sodainc
1
280
Featured
See All Featured
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
610
Believing is Seeing
oripsolob
1
290
Are puppies a ranking factor?
jonoalderson
2
4.2k
Faster Mobile Websites
deanohume
310
32k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.4k
The SEO Collaboration Effect
kristinabergwall1
1
630
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
Testing 201, or: Great Expectations
jmmastey
46
8.4k
Navigating Weather and Climate Data
rabernat
0
600
Crafting Experiences
bethany
1
460
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.8k