Ticket #683 (closed Task: invalid)
__toString() must not throw an exception
| Reported by: | Nowaker | Owned by: | Shadowhand |
|---|---|---|---|
| Priority: | trivial | Milestone: | |
| Component: | Libraries | Version: | SVN HEAD |
| Keywords: | validation tostring exception | Cc: |
Description
Code:
$form = new Forge (NULL, 'New camp');
$form->set_attr('class', 'new_camp');
$form
->input('free_places')
->class('free_places')
->label('Free places')
->rules('required|numeric');
$form
->submit('Dodaj')
->class('submit');
echo $form->render();
Error description:
Fatal error: Method View::__toString() must not throw an exception in E:\dev\www\projekty\Kolonie_BMVC\app\controllers\camp_admin.php on line 54
When: Only on numeric.
Change History
Note: See
TracTickets for help on using
tickets.
