How to open a new page with codeigniter

Asked

Viewed 53 times

0

I’m trying to learn a little bit about this framework, all the time I find something I don’t know how to solve, but after a lot of effort I can solve it, and now I’ve come across this little problem and I can’t find any information on the Internet to guide me.

I know that to call a view I use this code below

$data['content'] = $this->load->view('account/myview', $content_data, TRUE);
    $this->load->view($this->template, $data);

But I don’t want to call a view to get inside the template, I want to call a view to fill the entire page of the site, without any content of the template, but with the same appearance and I wanted to use the controller to send an array with information to this new page

1 answer

0

I managed to change the page just by modifying it, until it was simple, and I hope you’re right, working is

$data['content'] = $this->load->view('account/myPage', $content_data, TRUE);
$this->load->view('account/myPage', $data);

Browser other questions tagged

You are not signed in. Login or sign up in order to post.