form validation message does not appear
- Single Page
Posted 05 May 2013 - 19:48 PM
I am new with Grocery Crud... I m using pt-br language and form validation messages appear blank. It appears msg box but with no message.
Where s located message file? Does it have a especific lang file for crud or uses same of codeigniter?
Thanks, Julio.
Posted 06 May 2013 - 02:57 AM
Hello,
Both fields are set required, but when I click on button Save (Salvar) with the fields blank the message box appears but with no message.
Any idea?
public function employees() { $this->grocery_crud->set_subject('Estado'); $this->grocery_crud->columns('SIGUFS','DESUFS'); $this->grocery_crud->display_as('SIGUFS','Estado'); $this->grocery_crud->display_as('DESUFS','Descrição'); $this->grocery_crud->required_fields('SIGUFS','DESUFS'); $this->grocery_crud->set_table('e000ufs'); $output = $this->grocery_crud->render(); $this->_example_output($output); }
Julio.
Posted 07 May 2013 - 08:11 AM
The form validation is under system\language\ .
There it has just the english language.
You need to make your own!
Posted 08 May 2013 - 22:49 PM
Posted 09 May 2013 - 05:46 AM
The form validation class is a CodeIgniter class and this is where the messages coming from.
Under application\language you have the languages specific to the application your building. It also contains all the multilinual settings from the libraries/helpers you use.
Posted 26 May 2013 - 21:59 PM
Thanks David.
Problem solved.
Posted 21 June 2013 - 14:15 PM
I dont get it, I have the same problem, but it shouldnt have to do anything with the language. By default my other controllers work find displaying message like: "The Nombre field is required." which is fine. I dont understand why with this other entity manager messages appear BLANK just like your screenshot.
Posted 21 June 2013 - 14:22 PM
I see whats going on, I think using "display_as" method with special characters like accents causes the required fields message to break.