Changeset 1915 for trunk/modules/forge/controllers/forge_demo.php
- Timestamp:
- 02/04/2008 07:00:18 PM (11 months ago)
- Files:
-
- 1 modified
-
trunk/modules/forge/controllers/forge_demo.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/forge/controllers/forge_demo.php
r1658 r1915 38 38 39 39 echo $form->html(); 40 41 // Using a custom template: 42 // echo $form->html('custom_view', TRUE); 43 // Inside the view access the inputs using $input_id->html(), ->label() etc 44 // 45 // To get the errors use $input_id_errors. 46 // Set the error format with $form->error_format('<div>{message}</div>'); 47 // Defaults to <p class="error">{message}</p> 48 // 49 // Examples: 50 // echo $username->html(); echo $password_errors; 40 51 } 41 52
