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
icyleaf
December 15, 2014
Programming
0
120
使用 Kohana 轻便快速开发
icyleaf
December 15, 2014
Tweet
Share
More Decks by icyleaf
See All by icyleaf
Android 组件实践
icyleaf
0
63
我想学 Ruby 系列课程之开篇
icyleaf
0
120
论 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
Takumiから考えるSecurity_Maturity_Model.pdf
gessy0129
1
130
AI Assistants for Your Angular Solutions
manfredsteyer
PRO
0
120
nuget-server - あなたが必要だったNuGetサーバー
kekyo
PRO
0
210
Go Conference mini in Sendai 2026 : Goに新機能を提案し実装されるまでのフロー徹底解説
yamatoya
0
550
AIプロダクト時代のQAエンジニアに求められること
imtnd
3
760
Rで始めるML・LLM活用入門
wakamatsu_takumu
0
170
CDIの誤解しがちな仕様とその対処TIPS
futokiyo
0
190
DSPy入門 Pythonで実現する自動プロンプト最適化 〜人手によるプロンプト調整からの卒業〜
seaturt1e
1
630
Unity6.3 AudioUpdate
cova8bitdots
0
120
RubyとGoでゼロから作る証券システム: 高信頼性が求められるシステムのコードの外側にある設計と運用のリアル
free_world21
0
250
エラーログのマスキングの仕組みづくりに役立ったASTの話
kumoichi
0
140
AWS×クラウドネイティブソフトウェア設計 / AWS x Cloud-Native Software Design
nrslib
15
2.8k
Featured
See All Featured
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
340
Faster Mobile Websites
deanohume
310
31k
GitHub's CSS Performance
jonrohan
1032
470k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
150
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.5k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Unsuck your backbone
ammeep
672
58k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.4k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
170
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
64
53k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.7k
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