CakePHP Cookbook 3.x
implementation. It is ideal for test suites or long running processes where you don’t want persistent cache storage. Database Cake\Database\FunctionsBuilder::rand() was added. Datasource Paginator will now match class will be used by a controller/action. AuthComponent New config option storage has been added. It contains the storage class name that AuthComponent uses to store user record. By default SessionStorage Object settings/configuration Objects used in CakePHP now have a consistent instance-configuration storage/retrieval system. Code which previously accessed for example: $object->settings should instead be0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 3.x
implementation. It is ideal for test suites or long running processes where you don’t want persistent cache storage. Database • Cake\Database\FunctionsBuilder::rand() was added. Datasource • Paginator will now class will be used by a controller/action. AuthComponent • New config option storage has been added. It contains the storage class name that AuthComponent uses to store user record. By default SessionStorage Object settings/configuration • Objects used in CakePHP now have a consistent instance-configuration storage/retrieval system. Code which previously accessed for example: $object->settings should instead be0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 4.x
title. This format will let us create a new tag input in our template. Add the following to the PHP block of controls in templates/Articles/add.php: echo $this->Form->control('tags._ids', ['options' => $tags]); exception. Source Code Literal code blocks are created by ending a paragraph with ::. The literal block must be indented, and like all paragraphs be separated by single lines: This is a paragraph:: easier to read in complex template files. Control structures can either be contained in a larger PHP block, or in separate PHP tags: You are the admin user.'; endif;0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 4.x
title. This format will let us create a new tag input in our template. Add the following to the PHP block of controls in templates/Articles/add.php: echo $this->Form->control('tags._ids', ['options' => $tags]); exception. Source Code Literal code blocks are created by ending a paragraph with ::. The literal block must be indented, and like all paragraphs be separated by single lines: This is a paragraph:: while easier to read in complex template files. Control structures can either be contained in a larger PHP block, or in separate PHP tags: You are the admin user.'; endif; ?>0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook Documentation 5.xtitle. This format will let us create a new tag input in our template. Add the following to the PHP block of controls in templates/Articles/add.php: echo $this->Form->control('tags._ids', ['options' => $tags]); exception. Source Code Literal code blocks are created by ending a paragraph with ::. The literal block must be indented, and like all paragraphs be separated by single lines: This is a paragraph:: easier to read in complex template files. Control structures can either be contained in a larger PHP block, or in separate PHP tags: You are the admin user.'; endif;0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook Documentation 5.xtitle. This format will let us create a new tag input in our template. Add the following to the PHP block of controls in templates/Articles/add.php: echo $this->Form->control('tags._ids', ['options' => $tags]); exception. Source Code Literal code blocks are created by ending a paragraph with ::. The literal block must be indented, and like all paragraphs be separated by single lines: This is a paragraph:: while easier to read in complex template files. Control structures can either be contained in a larger PHP block, or in separate PHP tags: You are the admin user.'; endif; ?>0 码力 | 848 页 | 2.53 MB | 1 年前3
Laravel 5.0 Documentation
Events i. Basic Usage ii. Queued Event Handlers iii. Event Subscribers xi. Filesystem / Cloud Storage i. Introduction ii. Configuration iii. Basic Usage xii. Hashing i. Introduction ii. Basic Adding Indexes ix. Foreign Keys x. Dropping Indexes xi. Dropping Timestamps & Soft Deletes xii. Storage Engines v. Migrations & Seeding i. Introduction ii. Creating Migrations iii. Running Migrations integration with local, Amazon S3, and Rackspace cloud storage - all with one, unified and elegant API! Storing a file in Amazon S3 is now as simple as: Storage::put('file.txt', 'contents'); For more information0 码力 | 242 页 | 1.44 MB | 1 年前3
CakePHP Cookbook 2.x
but we imagine that most applications will utilize one. CakePHP supports a variety of database storage engines: MySQL (4 or greater) PostgreSQL Microsoft SQL Server SQLite Note All built-in drivers expects that the view extending it will define the sidebar and title blocks. The content block is a special block that CakePHP creates. It will contain all the uncaptured content from the extending view 'content' block // in the parent view. block will0 码力 | 1096 页 | 958.62 KB | 1 年前3
Falcon v3.0.0-b1 Documentationobject must now be initialized with a path used during POST def __init__(self, storage_path): self._storage_path = storage_path # This is the method we implemented before def on_get(self, req, resp): content_type) name = '{uuid}{ext}'.format(uuid=uuid.uuid4(), ext=ext) image_path = os.path.join(self._storage_path, name) with io.open(image_path, 'wb') as image_file: while True: chunk = req.stream.read(self check your progress: $ pytest tests You should see a TypeError as a consequence of adding the storage_path parameter to Resource. __init__(). 34 Chapter 5. Documentation Falcon Documentation, Release0 码力 | 338 页 | 1.14 MB | 1 年前3
Falcon v3.0.0-b2 Documentationobject must now be initialized with a path used during POST def __init__(self, storage_path): self._storage_path = storage_path # This is the method we implemented before def on_get(self, req, resp): content_type) name = '{uuid}{ext}'.format(uuid=uuid.uuid4(), ext=ext) image_path = os.path.join(self._storage_path, name) with io.open(image_path, 'wb') as image_file: while True: chunk = req.stream.read(self Falcon Documentation, Release 3.0.0b2 You should see a TypeError as a consequence of adding the storage_path parameter to Resource. __init__(). To fix this, simply edit app.py and pass in a path to the0 码力 | 340 页 | 1.15 MB | 1 年前3
共 79 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













