Cakephpdocs 26

CategoryCakePHP functions - create - a model function
Code ExamplesIn controller: $this->Post->create(); Cake performs saves through the use of the create() and save() model functions. => Initializes the model for writing a new record, loading the default values for those fields that are not defined in $data, and clearing previous validation errors. Especially helpful for saving data in loops. => Rendering
tags is simplified by the $form->create() function. This function also manages the action HTML attribute and points the form to the correct model. create( model[string], options[array] )
Test Code
Links
Remarks
Cancel