I would like to have a single controller generate multiple views depending on user input (in this case HTTP links) something like this:
public function video_home($ref_link)
{
if ('user clicked link here'){
$data = 'some stuff';
$this->load->view('view1', $data)
}
elseif('2nd user clicked link here){
$data = 'some stuff';
$this->load->view('view2', $data)
}
$this->load->view('page with links here')
}
I'm having a tough time trying to determine a way to get the ref link to pass to the conditionals. Any ideas?