form_error not displayed |
12-28-2014, 10:54 AM
(This post was last modified: 12-29-2014, 02:48 AM by Aurélienwww. Edit Reason: As includebeer noticed, i've added an echo in php demo line with form_error() )
Hello everybody !
I'm developping a web application using CodeIgniter with form helper and form_validation library. I'm trying to do a form with 15 fields to fill. The action of the form calls a method named "add()" which is : PHP Code: public function add(){ Comments are in french, but the only thing i do different from CI documentation is loading a library containing all my regex. It's not the first time i do this kind of form and it has always worked so far. For info "create()" is a method used to load the view. The problem is : errors are not displayed in view when i'm using for exemple with the first field: PHP Code: <?php echo form_error('client'); ?> I really don't understand what's going wrong, I've tried to use PHP Code: <?php echo validation_errors(); ?> Here is my view : PHP Code: <form class="form-horizontal" action="<?php echo site_url('devis/add');?>" method="post"> If you need more precision, don't hesitate to ask. Thank you, have nice christmas holidays !! |
Messages In This Thread |
form_error not displayed - by Aurélienwww - 12-28-2014, 10:54 AM
RE: form_error not displayed - by Rufnex - 12-28-2014, 01:43 PM
RE: form_error not displayed - by Aurélienwww - 12-28-2014, 02:32 PM
RE: form_error not displayed - by includebeer - 12-28-2014, 07:33 PM
RE: form_error not displayed - by Aurélienwww - 12-29-2014, 02:47 AM
RE: form_error not displayed - by includebeer - 12-29-2014, 05:12 AM
RE: form_error not displayed - by Aurélienwww - 12-29-2014, 05:43 AM
RE: form_error not displayed - by Avenirer - 12-29-2014, 06:25 AM
RE: form_error not displayed - by Aurélienwww - 12-29-2014, 07:18 AM
RE: form_error not displayed - by Aurélienwww - 12-30-2014, 12:08 PM
RE: form_error not displayed - by mwhitney - 12-30-2014, 01:55 PM
RE: form_error not displayed - by includebeer - 12-31-2014, 06:26 AM
|