Recently intended to be a more medium-sized PHP application, think of a broader MVC framework than the application.
Requirements
1.支持命名空间2.不支持PHP43.架构、性能更重要4.长期稳定,而不是很快就会被淘汰或者解散的框架
Yii2, Symfony2 are too large, not suitable. Taking into account
Cakephp notes-view layer 2CakePHP view layer can be composed of different parts. Each part has different purposes. Views: a view is the only page part of an action. They constitute the response of the application. Elements: small reusable View code.
The content of the head part of the page is mainly controlled by HtmlHelper in CakePHP, while the JS part is controlled by Javascripthelper, which is set in controller: var $helpers = Array (' Html ', ' Javascript '), you can use the
A component is a logical package shared among multiple controllers. If you find that you want to copy and paste something between controllers, you should consider encapsulating some functions in a component. CakePHP also comes with a set of
A component component is a logical package that is shared across multiple controllers. If people find themselves wanting to copy and paste something between controllers, you should consider wrapping some functionality in one component. CakePHP also
CakePHP Notes ――view Layer 2
CakePHP's view layer can be composed of different parts. Each part has a different purpose.
Views: The view is the only part of the page where the action runs. They form the response of the application.
elements:
PHP FrameworkFirst, the real project development steps:
Many people at the same time develop projects, collaborative development projects, reasonable division of labor, Efficiency has improved (code style is different, division of labor is
PHP Framework Hair RuiFirst, the real project development steps:
Many people at the same time develop projects, collaborative development projects, reasonable division of labor, Efficiency has improved (code style is different, division of
PHP FrameworkFirst, the real project development steps:
Many people at the same time develop projects, collaborative development projects, reasonable division of labor, Efficiency has improved (code style is different, division of labor is
Single Entry OverviewA single-entry application means that a file is used to process all HTTP requests, such as a list page or an article page, to access the index.php file from the browser, which is a single entry for the application.For example,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.