ThinkJS 2.0 中文文档
����������������������������� Node.js ���������� ���� //user controller, home/controller/user.js export default class extends think.controller.base { //login action async loginAction(self){ //���get����������� | |-- en.js | | | | `-- zh-CN.js | | | `-- route.js | | |-- controller | | | `-- error.js | | `-- runtime � ���������������������������������� nginx ���� ������ ES6 ����������� app/ ��� | `-- home | |-- config | |-- controller | | |-- base.js | | `-- index.js | |-- logic | |0 码力 | 238 页 | 1.87 MB | 1 年前3ThinkJS 2.1 Documentation
Started Introduction Features Using ES6/7 features //user controller, home/controller/user.js export default class extends think.controller.base { //login action async loginAction(self){ //if `-- route.js | | |-- controller | | | `-- error.js | | `-- runtime | `-- home | |-- config | |-- controller | | |-- base.js | folder, you should put the common controller files. For example, the error.js has designed some different error handling behaviors, you can modify it or add other controller according to the project requirements0 码力 | 148 页 | 1.69 MB | 1 年前3ThinkJS 2.2 Documentation
problem by using async/await or */yield features. //user controller, home/controller/user.js export default class extends think.controller.base { //login action async loginAction(self){ //if `-- route.js | | |-- controller | | | `-- error.js | | `-- runtime | `-- home | |-- config | |-- controller | | |-- base.js | folder, you should put the common controller files. For example, the error.js has designed some different error handling behaviors, you can modify it or add other controller according to the project requirements0 码力 | 156 页 | 2.62 MB | 1 年前3ThinkJS 2.0 Documentation
Started Introduction Features Using ES6/7 features //user controller, home/controller/user.js export default class extends think.controller.base { //login action async loginAction(self){ //if `-- route.js | | |-- controller | | | `-- error.js | | `-- runtime | `-- home | |-- config | |-- controller | | |-- base.js | folder, you should put the common controller files. For example, the error.js has designed some different error handling behaviors, you can modify it or add other controller according to the project requirements0 码力 | 141 页 | 1.61 MB | 1 年前3ThinkJS 2.2 中文文档
所有的特性,无需担心哪些特性当前版本不支 持。尤其是使用 async/await 或者 */yield 来解决异步回调的问题。 //user controller, home/controller/user.js export default class extends think.controller.base { //login action async loginAction(self){ //如果是get请求,直接显示登录⻚页⾯面 | | `-- route.js | | |-- controller | | | `-- error.js | | `-- runtime | `-- home | |-- config | |-- controller | | |-- base.js | 配置、本地化配置等必须放在这里。 'use strict'; /** * config */ export default { //key: value }; src/common/controller 控制器,放一些通用的控制器。其中 error.js 里错误处理的不同行为,项目里可以根据需要进 行修改。 src/common/runtime 项目运行时生成的一些目录,如:缓存0 码力 | 277 页 | 3.61 MB | 1 年前3CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 The Controller Layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 CMS Tutorial - Creating the Articles Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3 3.x Migration Guide 29 3 . . . . . . . . . . . . . . . . . . . . . . . . . . 111 CMS Tutorial - Creating the Articles Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 CMS Tutorial - Tags and Users0 码力 | 967 页 | 2.80 MB | 1 年前3CakePHP Cookbook 3.x
Contents CakePHP at a Glance Conventions Over Configuration The Model Layer The View Layer The Controller Layer CakePHP Request Cycle Just the Start Additional Reading Where to Get Help CakePHP Conventions Database Database Configuration Creating our First Model CMS Tutorial - Creating the Articles Controller Create the Article List Template Create the View Action Create the View Template Adding Articles Database Database Configuration Creating our First Model CMS Tutorial - Creating the Articles Controller Create the Article List Template Create the View Action Create the View Template Adding Articles0 码力 | 1244 页 | 1.05 MB | 1 年前3CakePHP Cookbook 4.x
Contents CakePHP at a Glance Conventions Over Configuration The Model Layer The View Layer The Controller Layer CakePHP Request Cycle Just the Start Additional Reading Where to Get Help CakePHP Conventions Database Database Configuration Creating our First Model CMS Tutorial - Creating the Articles Controller Create the Article List Template Create the View Action Create the View Template Adding Articles Database Database Configuration Creating our First Model CMS Tutorial - Creating the Articles Controller Create the Article List Template Create the View Action Create the View Template Adding Articles0 码力 | 1249 页 | 1.04 MB | 1 年前3CakePHP Cookbook 2.x
Configuration A Note on mod_rewrite Blog Tutorial - Adding a layer Create a Post Model Create a Posts Controller Creating Post Views Adding Posts Data Validation Editing Posts Deleting Posts Routes Conclusion CakePHP Overview What is CakePHP? Why use it? Understanding Model-View-Controller The Model layer The View layer The Controller layer CakePHP request cycle Benefits Where to Get Help The Official CakePHP Controllers The App Controller Request parameters Controller actions Request Life-cycle callbacks Controller Methods Interacting with Views Flow Control Callbacks Other Useful Methods Controller Attributes0 码力 | 1096 页 | 958.62 KB | 1 年前3CakePHP Cookbook Documentation 5.x
Contents CakePHP at a Glance Conventions Over Configuration The Model Layer The View Layer The Controller Layer CakePHP Request Cycle Just the Start Additional Reading Where to Get Help CakePHP Conventions Creating the Database Database Configuration Migrations CMS Tutorial - Creating the Articles Controller Create the Article List Template Create the View Action Create the View Template Adding Articles Configuration Migrations CMS Tutorial - Creating our First Model CMS Tutorial - Creating the Articles Controller Create the Article List Template Create the View Action Create the View Template Adding Articles0 码力 | 1080 页 | 939.39 KB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100