Welcome Guest, Not a member yet? Register   Sign In
Those damn language files kill you: HMVC
#3

Hello Mrwhitney,

I am trying to load the laguage in the controller constructor liko so :

PHP Code:
    function __construct() {
 
       parent::__construct();
        

        if (!
$this->ion_auth->logged_in())
        {
            
redirect('auth/login');
        }
    
//$this->load->language('members');
    //$this->lang->load('members');
 
   

   

In my searches over the internet regarding this the actual docs from wirezdesign say the first approach is the one to go with, but without results.
However the funny thing here is....all the language files from Ion Auth seem to load fine.....so i must be doing something wrong here, i disected the pyro cms source to see how Phill did it and also studied the bonfire source to see how it was done.

Hope you or anybody could point me in the right direction to sort this out.

Thanks in advanced

Decoder
Reply


Messages In This Thread
RE: Those damn language files kill you: HMVC - by Decoder - 07-29-2015, 02:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB