He took a course in a Web engineer during his postgraduate study. The course was Java servlet+ Tomcat + MySQL to develop a Facebook-like social networking site. The teacher mentioned the frame, saying that the purpose of the frame was to reduce the time of their early wheels. The cost of learning framework is to read documentation, it usually takes one months to study and explore. But do not take it lightly, the building blocks of their own hands is cool, just awesome.
Real contact with the framework of this thing, or early 2015, has just begun to enter the work. A framework cakephp was used to listen to NXP's internship. Cake's early ideas were to inherit Ror (Ruby on Rails), such as migration, command line. Of course, people are criticized for cake data encapsulation mode, biased towards relational database. While cakephp may not be as well-known as lavare, core developers, community activism and question-and-answer communities still have a lot of problems.
For the new contact to build a friend, cakephp development is very efficient, easy to expand. As well as the self-motivation to become the architect of children's shoes, read cakephp core code of learning value, personally think very high. The basic modules and functions of the common MVC framework are understood initially by using the API for cakephp encapsulation. In the advanced process, read the core code to understand the design principles. Finally, by optimizing the code to achieve the point of convergence. The author as a fledgling phper, also in the development of groping and efforts, hope to read to this article gentlemen to provide their own thinking, with June progress together.
This series is mainly to translate CakePHP 3 cookbook, focus on the use of CakePHP 3 development projects in the process of experience, while interspersed with the characteristics of cakephp 3. We hope to make some small contributions to cakephp by introducing the translation of cakephp 3, and I hope to know like-minded friends through this series.
As we go into the details, let's start with a quick look at some of the cakephp 3 features.
1). Naming convention (naming conventions)
Cake, like the Ror,django framework, provides a complete set of MVC contract names. Using naming conventions, you can conveniently use some of the features provided by cake. It also helps with the maintenance of the code after the project. For the development process, the naming convention is useful for development efficiency.
2). Data Layer (Model)
The data layer of cakephp 3 is significantly improved compared to cakephp 2. Not only supports Mysql,postgresql,microsoft SQL Server,sqlite, but also ORM provides two different data crud APIs. Users can use native SQL statements to invoke the database and to handle query flexibly. The Entity processing class provides a packaged set of APIs that can be used to process data securely.
3). View Layer (views)
The view layer provides basic data presentation. Templates and extension modules streamline code efficiently, making front-end code more concise and reusable. At the same time, the view layer provides a complete restful application, including resources such as Xml,json, which can be used as a URI to provide Web servers to the Web site.
4). Control Layer (Controllers)
As the core logic layer, the control layer is effectively combined with the data layer and the view layer. Important algorithmic processing that can be implemented and perfected at this level.
The above describes the CakePHP 3x Preface-Why to use the framework, including aspects of the content, I hope to be interested in PHP tutorial friends helpful.