CakePHP Cookbook 2.x
completed configuration array might look something like the following: public $default = array( 'datasource' => 'Database/Mysql', 'persistent' => false, 'host' => 'localhost', 'port' => '', shifting nodes in your underlying tree structure. Models are also supported by another class called a DataSource. DataSources are an abstraction that enable models to manipulate different types of data consistently "User2.status" = 'B' ) Also, if you need to pass just part of your query as raw SQL as above, datasource expressions with raw SQL work for any part of the find query. Prepared Statements Should you0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
completed configuration array might look something like the following: public $default = array( 'datasource' => 'Database/Mysql', 'persistent' => false, 'host' => 'localhost', 'port' => '', 'login' => 'cakeBlog' shifting nodes in your underlying tree structure. Models are also supported by another class called a DataSource. DataSources are an abstraction that enable models to manipulate different types of data consistently "User2.status" = 'B' ) Also, if you need to pass just part of your query as raw SQL as above, datasource expressions with raw SQL work for any part of the find query. Prepared Statements Should you0 码力 | 820 页 | 2.52 MB | 1 年前3
CakePHP Cookbook 3.x
you to use build complex order expressions with the provided QueryExpression object. Datasource Cake\Datasource\SimplePaginator was added. This class makes paginating very large results more efficient was added. This method makes it simple to call another command from the current one. Datasource Cake\Datasource\ModelAwareTrait::get() can now locate model classes by fully-qualified class names, enabling don’t want persistent cache storage. Database Cake\Database\FunctionsBuilder::rand() was added. Datasource Paginator will now match unprefixed sort values in the query string to the primary model if there0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 3.x
you to use build complex order expressions with the provided QueryExpression object. Datasource • Cake\Datasource\SimplePaginator was added. This class makes paginating very large results more effi- cient was added. This method makes it simple to call another command from the current one. Datasource • Cake\Datasource\ModelAwareTrait::get() can now locate model classes by fully-qualified class names, enabling want persistent cache storage. Database • Cake\Database\FunctionsBuilder::rand() was added. Datasource • Paginator will now match unprefixed sort values in the query string to the primary model if0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 4.x
Cake\Database\Connection::getCacher() have been added. Cake\Database\ConstraintsInterface was extracted from Cake\Datasource\FixtureInterface. This interface should be implemented by fixture implementations that support Cake\Database\Expression\Comparison was renamed to Cake\Database\Expression\ComparisonExpression. Datasource The sortWhitelist option of Paginator has been deprecated. Use sortableFields instead. The whitelist Cake\ORM\TableRegistry has been deprecated. Use Cake\ORM\Locator\LocatorAwareTrait::getTableLocator() or Cake\Datasource\FactoryLocator::get('Table') to get the table locator instance instead. Classes like Controller0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook Documentation 5.xbeen removed and should be replaced by calling $this->paginate() in your controller or using Cake\Datasource\Paging\NumericPaginator directly RequestHandlerComponent has been removed. See the 4.4 migration The ability to enable/disable ResultSet buffering has been removed. Results are always buffered. Datasource The getAccessible() method was added to EntityInterface. Non-ORM implementations need to implement 'unique value'], ] ); If you need more logic in your element, such as dynamic data from a datasource, consider using a View Cell instead of an element. Find out more about View Cells. Caching Elements0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook Documentation 5.xremoved and should be replaced by calling $this->paginate() in your con- troller or using Cake\Datasource\Paging\NumericPaginator directly • RequestHandlerComponent has been removed. See the 4.4 migration31 The ability to enable/disable ResultSet buffering has been removed. Results are always buffered. Datasource • The getAccessible() method was added to EntityInterface. Non-ORM implementations need to imple- 'key' => 'unique value'], ] ); If you need more logic in your element, such as dynamic data from a datasource, consider using a View Cell instead of an element. Find out more about View Cells. Caching Elements0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 4.x
on::getCacher() have been added. • Cake\Database\ConstraintsInterface was extracted from Cake\Datasource\FixtureInterface. This interface should be implemented by fixture implementations that support n\ ComparisonExpression. 4.1 Migration Guide 43 CakePHP Cookbook Documentation, Release 4.x Datasource • The sortWhitelist option of Paginator has been deprecated. Use sortableFields instead. • The Cake\ORM\TableRegistry has been deprecated. Use Cake\ORM\Locator\ LocatorAwareTrait::getTableLocator() or Cake\Datasource\FactoryLocator::get('Table') to get the table locator instance instead. Classes like Controller0 码力 | 967 页 | 2.88 MB | 1 年前3
共 8 条
- 1













