[eluser]condoace[/eluser]
for some reason I can not load a view within an if condition - so I am trying to use redirect function instead... any help in modifying the code below to work for redirect function
//loading a view by loading a template file and using an array to load content inside the template file
Code:
$this->load->view('include/template', array('main_content' => 'rooms/addroom_view'));
Any ideas how I can achieve this with a redirect function??