⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

form validation message does not appear



Julio
  • profile picture
  • Member

Posted 05 May 2013 - 19:48 PM

Hi everybody.
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.

Julio
  • profile picture
  • Member

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.


davidoster
  • profile picture
  • Member

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!


Julio
  • profile picture
  • Member

Posted 08 May 2013 - 22:49 PM

I thought it could be under application\language too, but thanks for your reply David.

davidoster
  • profile picture
  • Member

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.


Julio
  • profile picture
  • Member

Posted 26 May 2013 - 21:59 PM

Thanks David.

Problem solved.


Omar Juarez
  • profile picture
  • Member

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.


Omar Juarez
  • profile picture
  • Member

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.