CakePHP Cookbook 2.x
Named Parameters Reverse Routing Redirect Routing Disabling the Default Routes Custom Route Classes Router API Sessions Session Configuration Built-in Session handlers & configuration Setting ini directives going to be using MySQL server in this tutorial. You’ll need to know enough about SQL in order to create a database: CakePHP will be taking the reins from there. Since we’re using MySQL, also make sure sure that you have pdo_mysql enabled in PHP. 3. Basic PHP knowledge. The more object-oriented programming you’ve done, the better: but fear not if you’re a procedural fan. 4. Finally, you’ll need a basic0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 3.x
simple article management. Here’s what you’ll need: 1. A database server. We’re going to be using MySQL server in this tutorial. You’ll need to know enough about SQL in order to create a database, and will handle building all the queries your application needs. Since we’re using MySQL, also make sure that you have pdo_mysql enabled in PHP. 2. Basic PHP knowledge. Before starting you should make sure 'className' => 'Cake\Database\Connection', 'driver' => 'Cake\Database\Driver\Mysql', 'persistent' => false, 'host' => 'localhost', 'username' => 'cakephp'0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 4.x
Element Passed Arguments Generating URLs RouterBuilder::url RouterBuilder::reverse Using Router::url() Using Router::reverse() Routing Arrays vs Request Parameters Generating Asset URLs Redirect Routing simple article management. Here’s what you’ll need: 1. A database server. We’re going to be using MySQL server in this tutorial. You’ll need to know enough about SQL in order to create a database, and will handle building all the queries your application needs. Since we’re using MySQL, also make sure that you have pdo_mysql enabled in PHP. 2. Basic PHP knowledge. Before starting you should make sure0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook Documentation 5.xElement Passed Arguments Generating URLs RouterBuilder::url RouterBuilder::reverse Using Router::url() Using Router::reverse() Routing Arrays vs Request Parameters Generating Asset URLs Redirect Routing simple article management. Here’s what you’ll need: 1. A database server. We’re going to be using MySQL server in this tutorial. You’ll need to know enough about SQL in order to create a database, and will handle building all the queries your application needs. Since we’re using MySQL, also make sure that you have pdo_mysql enabled in PHP. 2. Basic PHP knowledge. Before starting you should make sure0 码力 | 1080 页 | 939.39 KB | 1 年前3
Celery 2.0 Documentationdefaults can still be set as task attributes. Routers A router is a class that decides the routing options for a task. All you need to define a new router is to create a class with a route_for_task method: "topic", "routing_key": "video.compress"} You install router classes by adding it to the CELERY_ROUTES setting: CELERY_ROUTES = (MyRouter, ) Router classes can also be added by name: CELERY_ROUTES = ("myapp ("myapp.routers.MyRouter", ) For simple task name -> route mappings like the router example above, you can simply drop a dict into CELERY_ROUTES to get the same result: CELERY_ROUTES = ({"myapp.tasks0 码力 | 284 页 | 332.71 KB | 1 年前3
Celery 2.2 Documentationuses a default transaction isolation level that is not suitable for polling tables for changes. In MySQL the default transaction isolation level is REPEATABLE-READ, which means the transaction will not see defaults can still be set as task attributes. Routers A router is a class that decides the routing options for a task. All you need to define a new router is to create a class with a route_for_task method: "routing_key": "video.compress"} You install router classes by adding them to the CELERY_ROUTES setting: CELERY_ROUTES = (MyRouter(), ) Router classes can also be added by name: CELERY_ROUTES =0 码力 | 505 页 | 878.66 KB | 1 年前3
Celery 2.3 Documentationuses a default transaction isolation level that is not suitable for polling tables for changes. In MySQL the default transaction isolation level is REPEATABLE-READ, which means the transaction will not see defaults can still be set as task attributes. Routers A router is a class that decides the routing options for a task. All you need to define a new router is to create a class with a route_for_task method: "routing_key": "video.compress"} You install router classes by adding them to the CELERY_ROUTES setting: CELERY_ROUTES = (MyRouter(), ) Router classes can also be added by name: CELERY_ROUTES =0 码力 | 530 页 | 900.64 KB | 1 年前3
Celery 2.4 Documentationhtml#database-urls], examples: # sqlite (filename) BROKER_HOST = "sqlite:///celerydb.sqlite" # mysql BROKER_HOST = "mysql://scott:tiger@localhost/foo" # postgresql BROKER_HOST = "postgresql://scott:tiger@localhost/mydatabase" INSTALLED_APPS: INSTALLED_APPS = ("djkombu", ) 3. Verify your database settings: DATABASE_ENGINE = "mysql" DATABASE_NAME = "mydb" DATABASE_USER = "myuser" DATABASE_PASSWORD = "secret" The above is just an use a default transaction isolation level that is not suitable for polling tables for changes. In MySQL the default transaction isolation level is REPEATABLE-READ, which means the transaction will not see0 码力 | 543 页 | 957.42 KB | 1 年前3
Celery 2.1 Documentationdefaults can still be set as task attributes. Routers A router is a class that decides the routing options for a task. All you need to define a new router is to create a class with a route_for_task method: "routing_key": "video.compress"} You install router classes by adding them to the CELERY_ROUTES setting: CELERY_ROUTES = (MyRouter, ) Router classes can also be added by name: CELERY_ROUTES = = ("myapp.routers.MyRouter", ) For simple task name -> route mappings like the router example above, you can simply drop a dict into CELERY_ROUTES to get the same behavior: CELERY_ROUTES = ({"myapp.tasks0 码力 | 463 页 | 861.69 KB | 1 年前3
Celery 2.5 Documentationhtml#database-urls]‘s: # sqlite (filename) BROKER_URL = "sqla+sqlite:///celerydb.sqlite" # mysql BROKER_URL = "sqla+mysql://scott:tiger@localhost/foo" # postgresql BROKER_URL = "sqla+postgresql://scott:ti use a default transaction isolation level that is not suitable for polling tables for changes. In MySQL the default transaction isolation level is REPEATABLE-READ, which means the transaction will not see defaults can still be set as task attributes. Routers A router is a class that decides the routing options for a task. All you need to define a new router is to create a class with a route_for_task method:0 码力 | 647 页 | 1011.88 KB | 1 年前3
共 476 条
- 1
- 2
- 3
- 4
- 5
- 6
- 48













