• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
validation

#1
Hi,

in CI3, I use the form_validation library some this:

$this->form_validation->set_rules('text_es', $this->lang->line('text').' '.$this->lang->line('castella'), 'min_length[2]');
$this->form_validation->set_rules('text_en', $this->lang->line('text').' '.$this->lang->line('angles'), 'min_length[2]');
$this->form_validation->set_rules('text_fr', $this->lang->line('text').' '.$this->lang->line('frances'), 'min_length[2]');

if ($this->form_validation->run() == FALSE)
{
$this->ecosistema(2, $this->input->post('ecosistema_id'));
}
else

{
// done
}

what's in CI4?

thanks!
Reply


Messages In This Thread
validation - by aparedesv - 10-20-2019, 11:42 PM
RE: validation - by aparedesv - 10-21-2019, 02:59 AM
RE: validation - by InsiteFX - 10-21-2019, 03:11 AM
RE: validation - by EvilMoe - 10-29-2019, 11:07 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.