与使用“普通香草" PHP相比,使用CodeIgniter或CakePHP之类的框架有什么优势? [英] What advantage does using a framework like CodeIgniter or CakePHP provide over using 'plain vanilla' PHP?
本文介绍了与使用“普通香草" PHP相比,使用CodeIgniter或CakePHP之类的框架有什么优势?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是PHP的新手,我想在明天的某个时间跳入代码之前尝试做更多的概述.
I'm new to PHP and am trying to more of an overview before I jump into the code sometime tomorrow.
使用诸如CodeIgniter或CakePHP或Zend之类的框架,与使用普通香草" PHP相比,有什么优势?
What advantage does using a framework like CodeIgniter or CakePHP or Zend provide over using 'plain vanilla' PHP?
推荐答案
- 该框架负责处理每个人完成一百次的工作-验证用户身份,与数据库对话,处理文件上载,验证表单.
- 它节省了您的时间,因为您无需再次编写.
- 它可以使您免于头痛,因为它的设计可能比您袖手旁观的要好,并且已经过彻底调试.
- 这使协作更容易,因为任何了解框架的人都可以加深对程序的了解.
- 它使编程更加有趣,因为您可以专注于编写有趣的部分,而不是笨拙的工作.
- The framework takes care of the stuff that everyone's done a hundred times - authenticating users, talking to databases, handling file uploads, validating forms.
- It saves you time, because you don't have to write it again.
- It saves you headaches, because it's probably designed better than you would off the cuff and because it's already been thoroughly debugged.
- It makes it easier to collaborate, because anyone who knows the framework has a step up on understanding your program.
- It makes programming more fun, because you can focus on writing the interesting bits, not the slugwork.
这篇关于与使用“普通香草" PHP相比,使用CodeIgniter或CakePHP之类的框架有什么优势?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文