I keep getting, an unable to load requested file error. Does anybody know how I can add a GET string to the view loader below?
if ($userType == 'regular') {
foreach ($query->result() as $row) {
$data = array('firstname' => $row->firstname);
$this->load->view('reg-user/dashboard.php?requestedPageType=wall_1', $data);
}
Yo.
You cant pass a query string to a view.
Your view files name must end in .php
Use the data array to pass your additional infos instead.