CakePHP Cookbook 3.x
Driver::newTableSchema() was added. This hook method lets you customize which the class used for schema metadata. FunctionBuilder::cast() was added. Query::orderAsc() and Query::orderDesc() now accept Closure’s The controller’s request will be updated with paging parameters. You can access the pagination metadata at $this- >request->getParam('paging'). Simple Pagination By default pagination uses a count() - The context for which the form is being defined. Can be an ORM entity, ORM resultset, array of metadata or false/null (to make a model-less form). $options - An array of options and/or HTML attributes0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 4.x
replaced with mock or stub objects. View Context classes now include the comment, null, and default metadata options in the results of attributes(). ViewBuilder::addHelper() now accepts an $options parameter FormHelper::control() will now populate the aria-invalid, aria-required, and aria-describedby attributes based on metadata from the validator. The aria-label attribute will be set if you disable the automatic label element The controller’s request will be updated with paging parameters. You can access the pagination metadata at $this- >request->getAttribute('paging'). Simple Pagination By default pagination uses a count()0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook Documentation 5.xfor which the form is being defined. Can be an ORM entity, ORM resultset, Form instance, array of metadata or null (to make a model-less form). $options - An array of options and/or HTML attributes. The case of an ORM backed form, FormHelper can access associated data, validation errors and schema metadata. You can close the active context using the end() method, or by calling create() again. To create will include a wrapping div, label, control widget, and validation error if necessary. By using the metadata in the form context, this method will choose an appropriate control type for each field. Internally0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 3.x
Driver::newTableSchema() was added. This hook method lets you customize which the class used for schema metadata. • FunctionBuilder::cast() was added. • Query::orderAsc() and Query::orderDesc() now accept Closure’s The controller’s request will be updated with paging parameters. You can access the pagination metadata at $this->request->getParam('paging'). 324 Chapter 10. Controllers CakePHP Cookbook Documentation - The context for which the form is being defined. Can be an ORM entity, ORM resultset, array of metadata or false/null (to make a model-less form). • $options - An array of options and/or HTML attributes0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook Documentation 5.xfor which the form is being defined. Can be an ORM entity, ORM resultset, Form instance, array of metadata or null (to make a model-less form). • $options - An array of options and/or HTML attributes. case of an ORM backed form, FormHelper can access associated data, validation errors and schema metadata. You can close the active context using the end() method, or by calling create() again. To create will include a wrapping div, label, control widget, and validation error if necessary. By using the metadata in the form context, this method will choose an appropriate control type for each field. Internally0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 4.x
replaced with mock or stub objects. View • Context classes now include the comment, null, and default metadata options in the results of attributes(). • ViewBuilder::addHelper() now accepts an $options parameter FormHelper::control() will now populate the aria-invalid, aria-required, and aria-describedby attributes based on metadata from the validator. The aria-label attribute will be set if you disable the automatic label element The controller’s request will be updated with paging parameters. You can access the pagination metadata at $this->request->getAttribute('paging'). Simple Pagination By default pagination uses a count()0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook 2.x
version of our posts/index we need to get a few things in order. It may be tempting to put the channel metadata in the controller action and pass it to your view using the Controller::set() method but this is contain all the metadata for our RSS feed. This is done by using the View::set() method which is analogous to the Controller::set() method. Here though we are passing the channel’s metadata back to the layout: you may need to access information stored in $data inside of model callbacks. _schema Contains metadata describing the model’s database table fields. Each field is described by: name type The types0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
version of our posts/index we need to get a few things in order. It may be tempting to put the channel metadata in the controller action and pass it to your view using the Controller::set() method but this is contain all the metadata for our RSS feed. This is done by using the View::set() method which is analogous to the Controller::set() method. Here though we are passing the channel’s metadata back to the layout: you may need to access information stored in $data inside of model callbacks. _schema Contains metadata describing the model’s database table fields. Each field is described by: • name • type The types0 码力 | 820 页 | 2.52 MB | 1 年前3
共 8 条
- 1













