Changeset 8289
- Timestamp:
- 04/04/08 16:30:43 (6 months ago)
- Files:
-
- doc/branches/1.1/book/06-Inside-the-Controller-Layer.txt (modified) (1 diff)
- doc/branches/1.1/book/10-Forms.txt (modified) (1 diff)
- doc/branches/1.1/book/14-Generators.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
doc/branches/1.1/book/06-Inside-the-Controller-Layer.txt
r8283 r8289 801 801 ------------------------------------- 802 802 803 >**NOTE** 804 >The features described in this section are deprecated in symfony 1.1 and only work if you enable the `sfCompat10` plugin. 805 803 806 Validating the action input--mostly request parameters--is a repetitive and tedious task. Symfony offers a built-in request validation system, using methods of the action class. 804 807 doc/branches/1.1/book/10-Forms.txt
r8255 r8289 484 484 --------------- 485 485 486 >**NOTE** 487 >The features described in this section are deprecated in symfony 1.1 and only work if you enable the `sfCompat10` plugin. 488 486 489 Chapter 6 explained how to use the `validateXXX()` methods in the action class to validate the request parameters. However, if you use this technique to validate a form submission, you will end up rewriting the same portion of code over and over. Symfony provides an alternative form-validation technique, relying on only a YAML file, instead of PHP code in the action class. 487 490 doc/branches/1.1/book/14-Generators.txt
r8283 r8289 181 181 182 182 Administration modules interpret the model by way of a special configuration file called `generator.yml`, which can be altered to extend all the generated components and the module look and feel. Such modules benefit from the usual module mechanisms described in previous chapters (layout, validation, routing, custom configuration, autoloading, and so on). You can also override the generated action or templates, in order to integrate your own features into the generated administration, but `generator.yml` should take care of the most common requirements and restrict the use of PHP code only to the very specific. 183 184 185 >**NOTE** 186 >The features described in this section use symfony 1.0's validation system and only work if you enable the `sfCompat10` plugin. 183 187 184 188 ### Initiating an Administration Module