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
使用 Kohana 轻便快速开发
Search
icyleaf
December 15, 2014
Programming
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
使用 Kohana 轻便快速开发
icyleaf
December 15, 2014
More Decks by icyleaf
See All by icyleaf
Android 组件实践
icyleaf
0
83
我想学 Ruby 系列课程之开篇
icyleaf
0
150
论 Mobile App (iOS/Android)自动化构建是如何炼成的
icyleaf
0
230
贡嘎转山之驴行的意义
icyleaf
0
170
Install Snow Leopard on PC (Hashintosh)
icyleaf
0
170
Git 入门实战
icyleaf
8
860
Other Decks in Programming
See All in Programming
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
2
980
Verilogで学ぶCPU自作入門
uyuki234
8
4.1k
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
280
自サークルのIdPからログアウトできるようになるまで
taiseiue
1
140
phperだってパンチカードでコーディングしたい
o0h
PRO
0
350
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
610
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
3
670
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.3k
sbt 2.0: takeoff
eed3si9n
0
160
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
280
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
220
Featured
See All Featured
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
58k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Documentation Writing (for coders)
carmenintech
77
5.6k
A Soul's Torment
seathinner
8
3.8k
The Language of Interfaces
destraynor
162
27k
Site-Speed That Sticks
csswizardry
13
1.6k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
300
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
YesSQL, Process and Tooling at Scale
rocio
174
15k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
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