![]() |
Newbie question....FreakAuth modifying - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Newbie question....FreakAuth modifying (/showthread.php?tid=5212) |
Newbie question....FreakAuth modifying - El Forum - 01-11-2008 [eluser]mgandha[/eluser] Im trying to show error validation messages. I swear i followed all the steps here is my code is below, there is no errors, company_check custom validator is fine code is going into the if loop when company_id = 0. However '$this->fal_validation->{'company_id'.'_error'} ' this code is just not showing the error msg.. any suggestiions??? The FAL example works fine the only difference is how it calls the view like this: return $this->CI->load->view($this->CI->config->item('FAL_register_view'), $data, TRUE); view Code: <?=(isset($this->fal_validation) ? $this->fal_validation->{'company_id'.'_error'} : '')?> controller Code: $fields['company_id'] = $this->lang->line('FAL_user_company_label'); library: Code: function company_check($company_id) Newbie question....FreakAuth modifying - El Forum - 01-11-2008 [eluser]mgandha[/eluser] Found out its this that does not work: $this->CI->lang->line('FAL_company_validation_message') im 100% sure i placed the coresponding line in the config file.. do i need to restart apache or something? Newbie question....FreakAuth modifying - El Forum - 01-11-2008 [eluser]mgandha[/eluser] Ok found the problem needed to add lang->load('xxxx') in the controller itself.. I thought it would return an error if a lang file should not be found... |