CakePHP Cookbook 2.x
getting and installing CakePHP, creating and configuring a database, and creating enough application logic to list, add, edit, and delete blog posts. Here’s what you’ll need: 1. A running web server. We’re Controller Next, we’ll create a controller for our posts. The controller is where all the controlling logic for post interaction will happen. In a nutshell, it’s the place where you play with the models and $this->Post->find('all')); } } By defining function index() in our PostsController, users can access the logic there by requesting www.example.com/posts/index. Similarly, if we were to define a function called0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
getting and installing CakePHP, creating and configuring a database, and creating enough application logic to list, add, edit, and delete blog posts. Here’s what you’ll need: 1. A running web server. We’re Controller Next, we’ll create a controller for our posts. The controller is where all the controlling logic for post interaction will happen. In a nutshell, it’s the place where you play with the models and $this->Post->find('all')); } } By defining function index() in our PostsController, users can access the logic there by requesting www.example.com/posts/index. Similarly, if we were to define a function called0 码力 | 820 页 | 2.52 MB | 1 年前3
CakePHP Cookbook 3.x
Model Layer The Model layer represents the part of your application that implements the business logic. It is responsible for retrieving data and converting it into the primary meaningful concepts in your extension points like View Templates, Elements and View Cells to let you re-use your presentation logic. The View layer is not only limited to HTML or text representation of the data. It can be used to need a controller for our articles. Controllers in CakePHP handle HTTP requests and execute business logic contained in model methods, to prepare the response. We’ll place this new controller in a file called0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 3.x
Model Layer The Model layer represents the part of your application that implements the business logic. It is responsible for re- trieving data and converting it into the primary meaningful concepts in extension points like View Templates, Elements and View Cells to let you re-use your presentation logic. The View layer is not only limited to HTML or text representation of the data. It can be used to need a controller for our articles. Controllers in CakePHP handle HTTP requests and execute business logic contained in model methods, to prepare the response. We’ll place this new controller in a file called0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook Documentation 5.xModel Layer The Model layer represents the part of your application that implements the business logic. It is responsible for retrieving data and converting it into the primary meaningful concepts in your extension points like View Templates, Elements and View Cells to let you re-use your presentation logic. The View layer is not only limited to HTML or text representation of the data. It can be used to the manual code examples to understand how the pieces fit together and how to add your application logic. Checking our Installation We can quickly check that our installation is correct, by checking the0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook Documentation 5.xModel Layer The Model layer represents the part of your application that implements the business logic. It is responsible for re- trieving data and converting it into the primary meaningful concepts in extension points like View Templates, Elements and View Cells to let you re-use your presentation logic. The View layer is not only limited to HTML or text representation of the data. It can be used to the manual code examples to understand how the pieces fit together and how to add your application logic. 20 https://getcomposer.org/download/ 21 https://getcomposer.org/Composer-Setup.exe 22 https://github0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 4.x
Model Layer The Model layer represents the part of your application that implements the business logic. It is responsible for retrieving data and converting it into the primary meaningful concepts in your extension points like View Templates, Elements and View Cells to let you re-use your presentation logic. The View layer is not only limited to HTML or text representation of the data. It can be used to need a controller for our articles. Controllers in CakePHP handle HTTP requests and execute business logic contained in model methods, to prepare the response. We’ll place this new controller in a file called0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 4.x
Model Layer The Model layer represents the part of your application that implements the business logic. It is responsible for re- trieving data and converting it into the primary meaningful concepts in extension points like View Templates, Elements and View Cells to let you re-use your presentation logic. The View layer is not only limited to HTML or text representation of the data. It can be used to need a controller for our articles. Controllers in CakePHP handle HTTP requests and execute business logic contained in model methods, to prepare the response. We’ll place this new controller in a file called0 码力 | 967 页 | 2.88 MB | 1 年前3
共 8 条
- 1













