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
Čo ma naučil Yii framework (WebElement #6)
Search
Vladimír Kriška
April 12, 2012
Programming
0
160
Čo ma naučil Yii framework (WebElement #6)
Vladimír Kriška
April 12, 2012
Tweet
Share
More Decks by Vladimír Kriška
See All by Vladimír Kriška
Twelve-Factor app with Docker
ujovlado
0
50
Design a REST API you will love to work with
ujovlado
0
660
Docker for PHP developers - Tips, Tricks & Lessons learned
ujovlado
3
400
Docker ‐ from development to production in minutes (PoSobota #91)
ujovlado
0
290
Non-traditional use of Docker (Nette Camp #3)
ujovlado
0
71
Contributions [lightning talk] (PyconCZ 2015)
ujovlado
0
42
CSS Flexbox (WebElement #35)
ujovlado
0
100
Simplify your dev life with Docker (WebElement Banská Bystrica)
ujovlado
0
97
Don't underestimate CSS (WebElement #30)
ujovlado
0
520
Other Decks in Programming
See All in Programming
GraphQL はいいぞ! ~Laravel で学ぶ GraphQL 入門~
azuki
1
160
Clean Architecture by TypeScript & NestJS
ryounasso
0
150
feature環境をGitHub ActionsとCloudFormationでいい感じに管理する
nealle
2
310
SDCon2024: Enabling DevOps and Team Topologies thru architecture: architecting for fast flow
cer
PRO
0
780
iOSアプリでクリップボードにコピーしたことをユーザーに伝えるちょうど良いフィードバックを探す
ski
0
100
Cloudflare Workers x AWS Lambdaの組み合わせユースケース / Cloudflare Workers x AWS Lambda Combination Use Case
seike460
PRO
2
310
英語
s_shimotori
1
220
From Spring Boot 2 to Spring Boot 3 with Java 22 and Jakarta EE
ivargrimstad
0
1.9k
[After Kotlin Fest 2024 LT Night @ Sansan] もっともっとKotlinを好きになる!K2 Compiler Pluginで遊んでみよう!
kitakkun
2
260
しくじり先生 Image Matching Challenge 2024 編
goosehaaan
0
810
君たちはどうコードをレビューする (される) か / 大吉祥寺.pm
utgwkk
15
8.5k
初心者がおさえておきたいAWS CDKのベストプラクティス 2024
konokenj
15
7.3k
Featured
See All Featured
Making Projects Easy
brettharned
111
5.7k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
26
1.6k
Designing Experiences People Love
moore
136
23k
Designing on Purpose - Digital PM Summit 2013
jponch
113
6.6k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
325
21k
Imperfection Machines: The Place of Print at Facebook
scottboms
262
13k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
277
13k
VelocityConf: Rendering Performance Case Studies
addyosmani
321
23k
Done Done
chrislema
179
15k
How to train your dragon (web standard)
notwaldorf
79
5.5k
What the flash - Photography Introduction
edds
65
11k
How GitHub Uses GitHub to Build GitHub
holman
471
290k
Transcript
Čo ma naučil Yii framework Vladimír Kriška (@ujovlado) WebElement #6
Ako zakladáte projekt?
Na čo nedám dopustiť? ◦ ActiveRecord ◦ Scaffolding ◦ Migrations
◦ Configuration ◦ Caching ◦ Logging
ActiveRecord ◦ @srigi - WebElement #1 ◦ statické modely ◦
relácie + "through" ◦ validácie ◦ after*, before* metódy ◦ rýchlosť
Scaffolding ◦ Generovanie kódu s Yii framework - zdroják ◦
shell/Gii ◦ controller, cruf, model, form, module ◦ vlastné šablóny
Migrations ◦ migrate command ◦ tabuľka s migráciami
Configuration ◦ jeden hlavný config ◦ dedičnosť pomocou CMap::mergeArray() ◦
ľahké prepínanie
Caching ◦ Yii::app()->cache-> ◦ veľa možností (CFileCache, CMemCache, CDbCache, CApcCache)
Ukážka
Kam ďalej? ◦ yiiframework.com ◦ @yiiframework ◦ čítajte zdrojáky
Ďakujem.