Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
CakePHP: In about 15 minutes or less
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Justin Yost
December 02, 2016
Programming
61
0
Share
CakePHP: In about 15 minutes or less
Run through of some basics with CakePHP in about 15 minutes for a framework roundtable.
Justin Yost
December 02, 2016
More Decks by Justin Yost
See All by Justin Yost
Laravel 6, 7 and Other Goodies
justinyost
2
100
PHP and Databases
justinyost
2
62
Ansible: What Is It and What Is It Good For?
justinyost
0
70
Generators: All About the Yield
justinyost
0
11
Laravel 6: What's New and What's Changed
justinyost
0
230
Middleware: Between the Framework and the Browser
justinyost
2
110
Caching and You and You and You and You...
justinyost
0
87
Git: The Pain and the Gain
justinyost
0
200
Generators: All About the Yield
justinyost
0
300
Other Decks in Programming
See All in Programming
Inside Stream API
skrb
1
630
フロントエンドとバックエンドで「1文字」を揃えよう
youkidearitai
PRO
0
180
SPMマルチモジュールで テストカバレッジを取得する技法
yosshi4486
0
140
Swiftのレキシカルスコープ管理
kntkymt
0
210
さぁV100、メモリをお食べ・・・
nilpe
0
130
代数的データ型って何が嬉しいの? #frontend_phpcon_do
kajitack
8
3.1k
Stage 3 Decorators でできること / できないこと / TSKaigi 2026
susisu
1
1.5k
セキュリティの専門家じゃなくてもできる。「セキュリティ意識」をアップデートして サプライチェーン攻撃への耐性を高めよう。
tk3fftk
5
590
TypeSpec で繋ぐ複数プロダクトの型安全
maroon8021
1
360
Lemonade + Foundry Toolkit でお手軽アプリ開発
seosoft
1
270
LLM Plugin for Node-REDの利用方法と開発について
404background
0
160
AIとASP.NET Coreで雑Webアプリを作った話
mayuki
0
260
Featured
See All Featured
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.5k
Test your architecture with Archunit
thirion
1
2.3k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
720
Color Theory Basics | Prateek | Gurzu
gurzu
0
340
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
300
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Faster Mobile Websites
deanohume
310
31k
AI: The stuff that nobody shows you
jnunemaker
PRO
8
690
Information Architects: The Missing Link in Design Systems
soysaucechin
0
960
Context Engineering - Making Every Token Count
addyosmani
9
940
Automating Front-end Workflow
addyosmani
1370
210k
Transcript
CakePHP: In about 15 minutes or less Justin Yost Web
Developer at Loadsys CC BY-NC 4.0 Justin Yost 1
CakePHP Highlights — Convention over Configuration — MVC — "Build
fast, grow solid" — PHP 5.5+ — ORM blends ActiveRecord and Datamapper CC BY-NC 4.0 Justin Yost 2
CakePHP — composer create-project --prefer-dist cakephp/app {awesome-app} — Build Tables
— Setup DB configuration — bin/cake bake all {table-name} — Done with CRUD for {table-name} CC BY-NC 4.0 Justin Yost 3
CC BY-NC 4.0 Justin Yost 4
CakePHP Core Classes — Table — Entity — View —
Controller CC BY-NC 4.0 Justin Yost 5
CakePHP: Table public function findOwnedBy(Query $query, array $options) { $user
= $options['user']; return $query->where(['author_id' => $user->id]); } CC BY-NC 4.0 Justin Yost 6
CakePHP: Entity protected function _getFullName() { return $this->_properties['first_name'] . '
' . $this->_properties['last_name']; } CC BY-NC 4.0 Justin Yost 7
CakePHP: View <?php foreach ($users as $user): ?> <li class="user">
<?= $this->element('user', ['user' => $user]) ?> </li> <?php endforeach; ?> CC BY-NC 4.0 Justin Yost 8
CakePHP: Controller public function add() { $user = $this->Users->newEntity(); if
($this->request->is('post')) { $user = $this->Users->patchEntity($user, $this->request->data); if ($this->Users->save($user)) { $this->Flash->success(__('You are now registered.')); } else { $this->Flash->error(__('There were some problems.')); } } $this->set('user', $user); } CC BY-NC 4.0 Justin Yost 9
Why I like CakePHP — Rich and extensive core foundational
layer with lots of room to grow — ORM is amazing — Solid, Rich documentation CC BY-NC 4.0 Justin Yost 10
CakePHP Support, misc — cakephp.org — book.cakephp.org — api.cakephp.org CC
BY-NC 4.0 Justin Yost 11
Thanks/Questions? — twitter.com/justinyost — github.com/justinyost — justinyost.com — loadsys.com —
lynda.com/justinyost CC BY-NC 4.0 Justin Yost 12