I am receiving $fb_data[uid] i.e Facebook UID from my model and I want to put this variable’s value into my controller where the signup process is taking place
passing fields in controller like this:
$sql_data = array('student_fname' => $student_fname, 'student_sname' => $student_sname, 'student_org' => $student_org, 'student_title' => $student_title, 'student_uid' => ?
I am confused how to insert the Facebook UID value here at my controller..
You need to have a function in your model which returns your
$fb_data. In the controller you have (if not already done) to load the modelThen you can access your model function from the controller by calling
The section ‘loading a model’ in the CI documentation explains it again.