Welcome Guest, Not a member yet? Register   Sign In
How can i pass complete language to a view
#3

(02-14-2016, 06:53 AM)siburny Wrote: It's easier to use lang helper function - it has access to the full language file without need of poluting view data object.

https://www.codeigniter.com/userguide3/h...elper.html

I've read this page, maybe 100 times, but I can't see this code


Code:
$this->load->helper('language');


after add this code to my controller problem solved. Another question if it's possible

i dont want to use php code in my template files. may i user parser for lang files?

maybe 


Code:
{lang->lang1} etc..

instead of


Code:
<?php echo lang("lang1") ?>


is this possible?
Reply


Messages In This Thread
RE: How can i pass complete language to a view - by spider58 - 02-14-2016, 11:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB