I have an issue, I have data being sent to the user who needs to check the datais correct before submitting it to the model. Usually I would send datya from a controller but I’m not sure how to do it in this circumstance..
This is what I have
CONTROLLER
$questions = $this->assessment_model->get_list_questions($data['list']);
$this->load->view('quiz', $questions);
My view than outputs $questions to the user. (Questions is a BIG array)
VIEW
foreach ($questions['data'] as $q) {
echo $q;
};
echo "<a href'WHAT_GOES_HERE'>Save Question list</a>"
Once the user has clicked on the link I need to submit the data in $questions to another controller… Is there a strait forward way to do this?
Cheers
Chris
Your controller needs a correction:
In the view:
On the second controller:
For help: http://codeigniter.com/user_guide/libraries/sessions.html