Welcome Guest, Not a member yet? Register   Sign In
Community-Auth variables?
#1

I'm trying to access the variables inside the controller?

Code:
class Front extends MY_Controller
{
    function __construct()
    {
        parent::__construct();
        
        $this->load->helper('array_object_helper');
        $this->load->helper('array_helper');
        $this->load->model('codesmastery_mdl');
        
        //get languages from DB.
        $languages = $this->codesmastery_mdl->get_languages();    
        $this->session->set_flashdata('flash_msg_lang', $languages);
        
        //Get Community-auth variables
        echo '<b>username: </b>' . $this->auth_username;
      
    }

But unfortunately I got this error
Code:
Message: Undefined property: Front::$auth_username

So why is this happening?
skunkbad can you help me?

thanks in advance.
No SEO spam
Reply


Messages In This Thread
Community-Auth variables? - by solidcodes - 03-04-2016, 07:54 PM
RE: Community-Auth variables? - by skunkbad - 03-04-2016, 08:40 PM
RE: Community-Auth variables? - by solidcodes - 03-04-2016, 10:19 PM
RE: Community-Auth variables? - by solidcodes - 03-04-2016, 11:48 PM
RE: Community-Auth variables? - by skunkbad - 03-05-2016, 03:43 PM
RE: Community-Auth variables? - by solidcodes - 03-05-2016, 08:06 PM
RE: Community-Auth variables? - by skunkbad - 03-05-2016, 08:16 PM
RE: Community-Auth variables? - by solidcodes - 03-05-2016, 08:08 PM
RE: Community-Auth variables? - by solidcodes - 03-05-2016, 08:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB