![]() |
How to use the 'lang' key in the control file - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: How to use the 'lang' key in the control file (/showthread.php?tid=71535) |
How to use the 'lang' key in the control file - tuoidv - 08-25-2018 How to use the 'lang' key in the control file Hi everybody My system has several different languages, which means I have to send different messages (flashdata sessions) for each language but I can not use the `lang` key in my control file. How can I handle it? <? php if ($ this-> session-> flashdata ('ok')):?> <alert class = "alert-success fade in widget-inner"> <button type = "button" class = "close" data-dismiss = "alert" × </ button> </ php> echo $ this-> session-> flashdata ('ok');?> </ div> <? php endif; if ($ this-> session-> flashdata ('hata')):?> <alert class-alert fade in widget-inner "> <button type = "button" class = "close" data-dismiss = "alert" × </ button> <? php echo $ this-> session-> flashdata ('hata');?> </ div> <? php endif; echo validation_errors (' <alert class-alert fade in widget-inner "> <button type = "button" class = "close" data-dismiss = "alert" × </ button> <fa> </ i> ', </ div> '); ? Thanks everyone. |