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
使用 Kohana 轻便快速开发
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
icyleaf
December 15, 2014
Programming
120
0
Share
使用 Kohana 轻便快速开发
icyleaf
December 15, 2014
More Decks by icyleaf
See All by icyleaf
Android 组件实践
icyleaf
0
64
我想学 Ruby 系列课程之开篇
icyleaf
0
130
论 Mobile App (iOS/Android)自动化构建是如何炼成的
icyleaf
0
200
贡嘎转山之驴行的意义
icyleaf
0
150
Install Snow Leopard on PC (Hashintosh)
icyleaf
0
160
Git 入门实战
icyleaf
8
820
Other Decks in Programming
See All in Programming
今からFlash開発できるわけないじゃん、ムリムリ! (※ムリじゃなかった!?)
arkw
0
190
AWS re:Invent 2025の少し振り返り + DevOps AgentとBacklogを連携させてみた
satoshi256kbyte
2
150
「速くなった気がする」をデータで疑う
senleaf24
0
150
仕様漏れ実装漏れをなくすトレーサビリティAI基盤のご紹介
orgachem
PRO
8
5k
まかせられるPM・まかせられないPM / DevTech GUILD Meetup
yusukemukoyama
0
110
20260320登壇資料
pharct
0
160
L’IA au service des devs : Anatomie d'un assistant de Code Review
toham
0
220
PHP でエミュレータを自作して Ubuntu を動かそう
m3m0r7
PRO
2
170
The Monolith Strikes Back: Why AI Agents ❤️ Rails Monoliths
serradura
0
260
「接続」—パフォーマンスチューニングの最後の一手 〜点と点を結ぶ、その一瞬のために〜
kentaroutakeda
5
2.5k
実践ハーネスエンジニアリング #MOSHTech
kajitack
7
6k
感情を設計する
ichimichi
5
1.3k
Featured
See All Featured
My Coaching Mixtape
mlcsv
0
96
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
680
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
96
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
Technical Leadership for Architectural Decision Making
baasie
3
310
First, design no harm
axbom
PRO
2
1.2k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.8k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
250
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
210
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.1k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
680
Transcript
使用 Kohana 轻便快速开发 在编码中成长
• 你需要快速构建自己的应用 • 你想要了解框架都能干什么 • 自己堆写代码的乐趣胜于让框架帮你生成 •
你需要构建商业应用 你心目中框架能干什么?
Kohana 全部满足!
那么… Kohana 是什么?
Kohana 是基于 HMVC 架构 的 PHP5 框架。
Controller View Model Controller View Model Controller View Model Controller
View Model Controller View Model HMVC = Hierarchical-‐MVC
Controller View Model Controller View Model Controller View Model Controller
View Model Controller View Model Dashboard Pages ACL Media Posts HMVC = Hierarchical-‐MVC
None
为什么使用 Kohana?
KISS and DRY 可乐而不为?
文件级联系统 Cascading Filesystem
None
加载其他类库 Import other classes
// 首先把 pear 包放在 application/vendor 文件夹下面 // 加载 vendor 目录下
pear/Net 文件夹下面的 POP3.php 文件 require Kohana::find_file('vendor', ‘pear/Net/POP3'); // 实例化 POP3 类 $pop3 = new POP3(); 加载 Pear 包中的 POP3 类
调试代码 Debug
// 显示 $foo 和 $bar 变量的相关信息 echo Kohana::debug($foo, $bar);
1. 调试变量 2. 调试源代码 // 显示当前行的源代码 echo Kohana::debug_source(__FILE__, __LINE__); 3. 调试文件 // 调试 “APPPATH/classes/cache.php” 文件同时并不显示真实路径 echo Kohana::debug_file(‘application/classes/cache.php');
错误/异常句柄 Error/Exception Handling
None
分析统计 Profiling
None
路由 Routing
None
None
日志记录 Logging
None
by lzyy
配置系统 Configuration system
None
None
代码演示 Demo
任何问题? QuesBon
感谢大家! Thanks at all