用Kohana框架來替代Zend框架
As you know from reading Malt Blue, I’m rather a Zend Framework fan.
Whether it’s the controller plugins, easily adding RSS feeds to applications, configuration with Zend Config or more – I really believe it’s one of the best framework choices that PHP has to offer.
However recently I’ve been doing a lot of research in to some of the best PHP frameworks and codebases, including Symfony 1 & Symfony 2, Drupal, CakePHP and Kohana for a technical documentation project that I’ve been working on.
As a part of that project, I’ve had to really come up to speed about how they’re composed and the process for doing core configuration, including:
1. Specifying where the session information is stored
2. Specifying where the log information is stored
3. Automagically determining the current, running, environment
Whether it’s the controller plugins, easily adding RSS feeds to applications, configuration with Zend Config or more – I really believe it’s one of the best framework choices that PHP has to offer.
However recently I’ve been doing a lot of research in to some of the best PHP frameworks and codebases, including Symfony 1 & Symfony 2, Drupal, CakePHP and Kohana for a technical documentation project that I’ve been working on.
As a part of that project, I’ve had to really come up to speed about how they’re composed and the process for doing core configuration, including:
1. Specifying where the session information is stored
2. Specifying where the log information is stored
3. Automagically determining the current, running, environment
Well, to say the least, I was really surprised at just how simple, lightweight and easy Kohana is to use. Wow, what a true breath of fresh air it is after using Zend Framework for so long now.
1. It didn’t force me to follow a rigid set of configuration and layout practices
2. It provides a wealth of built in options and resources in a well commented configuration file: application/bootstrap.php
2.1. All you need to do is uncomment the option you want and it’s available to the application
3. It makes it dead simple to override core classes. There’s no need to explicitly add file paths.
4. It’s very fast
5. It’s easy to add in 3rd party libraries to extend core functionality
6. It’s easy to create modules to add in functionality that’s not already there
Now don’t get me wrong, I’m not leaving Zend Framework behind, I’m still a big fan. But I have to be honest and acknowledge that Zend Framework can be a lot of work to get started with and to setup testing with as well.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/301743/viewspace-737847/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- linuxphp載入zend框架LinuxPHP框架
- 高效能Web框架Zend FrameworkWeb框架Framework
- 用Spry框架來簡化AJAX框架
- 未來的框架框架
- Django用來作為爬蟲框架淺談Django爬蟲框架
- Spring Boot 輕量替代框架 Solon 1.3.29 釋出Spring Boot框架
- Spring Boot 輕量替代框架 Solon 1.3.20 釋出Spring Boot框架
- Spring Boot 輕量替代框架 Solon 1.3.15 釋出Spring Boot框架
- Spring Boot 輕量替代框架 Solon 1.3.18 釋出Spring Boot框架
- Spring Boot & Cloud 輕量替代框架 Solon 1.4.1 釋出Spring BootCloud框架
- Springboot 輕量替代框架 Solon 1.3.10 釋出Spring Boot框架
- 當下的前端框架和未來前端框架對比前端框架
- 前端框架擼起來——概述前端框架
- 來玩Play框架03 模板框架
- Spring Boot & Cloud 輕量替代框架 Solon 1.3.33 釋出Spring BootCloud框架
- Spring Boot & Cloud 輕量替代框架 Solon 1.3.35 釋出Spring BootCloud框架
- Spring Boot & Cloud 輕量替代框架 Solon 1.3.37 釋出Spring BootCloud框架
- 框架應用的思考框架
- 理想的應用框架框架
- Seam應用程式框架框架
- 教程:基本應用框架框架
- 框架應用的利弊框架
- Zend Framework+Smarty應用Framework
- 前端框架擼起來——根元件前端框架元件
- 來玩Play框架01 簡介框架
- 來玩Play框架04 表單框架
- 來玩Play框架02 響應框架
- Spring Boot 輕量替代框架 Solon 的架構筆記 - newSpring Boot框架架構筆記
- 模仿KOA,用php來寫一個極簡的開發框架PHP框架
- 用IDEA搭建SSM框架IdeaSSM框架
- Web應用程式框架-CatharsisWeb框架
- 前端框架擼起來——元件和路由前端框架元件路由
- RegularJS——來自網易的JavaScriptMVC框架JSJavaScriptMVC框架
- Pure : 來自雅虎的純 CSS 框架CSS框架
- 來玩Play框架05 資料庫框架資料庫
- 架構之路(6):把框架拉出來架構框架
- 架構之路(六):把框架拉出來架構框架
- 你使用的框架都是假的 帶你認知未來前端UI框架框架前端UI