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
110
使用 Kohana 轻便快速开发
icyleaf
December 15, 2014
Tweet
Share
More Decks by icyleaf
See All by icyleaf
Android 组件实践
icyleaf
0
59
我想学 Ruby 系列课程之开篇
icyleaf
0
120
论 Mobile App (iOS/Android)自动化构建是如何炼成的
icyleaf
0
200
贡嘎转山之驴行的意义
icyleaf
0
140
Install Snow Leopard on PC (Hashintosh)
icyleaf
0
160
Git 入门实战
icyleaf
8
810
Other Decks in Programming
See All in Programming
開発生産性を上げるための生成AI活用術
starfish719
3
430
Six and a half ridiculous things to do with Quarkus
hollycummins
0
160
Go言語の特性を活かした公式MCP SDKの設計
hond0413
1
230
monorepo の Go テストをはやくした〜い!~最小の依存解決への道のり~ / faster-testing-of-monorepos
convto
2
470
overlayPreferenceValue で実現する ピュア SwiftUI な AdMob ネイティブ広告
uhucream
0
180
なぜGoのジェネリクスはこの形なのか? Featherweight Goが明かす設計の核心
ryotaros
7
1.1k
GraphQL×Railsアプリのデータベース負荷分散 - 月間3,000万人利用サービスを無停止で
koxya
1
1.2k
Go Conference 2025: Goで体感するMultipath TCP ― Go 1.24 時代の MPTCP Listener を理解する
takehaya
9
1.6k
大規模アプリのDIフレームワーク刷新戦略 ~過去最大規模の並行開発を止めずにアプリ全体に導入するまで~
mot_techtalk
1
430
GitHub Actions × AWS OIDC連携の仕組みと経緯を理解する
ota1022
0
250
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
240
『毎日の移動』を支えるGoバックエンド内製開発
yutautsugi
2
230
Featured
See All Featured
How to Ace a Technical Interview
jacobian
280
24k
Statistics for Hackers
jakevdp
799
220k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.2k
The Language of Interfaces
destraynor
162
25k
The Straight Up "How To Draw Better" Workshop
denniskardys
237
140k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.5k
Faster Mobile Websites
deanohume
310
31k
Writing Fast Ruby
sferik
629
62k
Designing Experiences People Love
moore
142
24k
A Tale of Four Properties
chriscoyier
160
23k
Typedesign – Prime Four
hannesfritz
42
2.8k
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