Class
public function load($page = 'resources')
{
if ( ! file_exists(APPPATH.'views/resources/'.$page.'.php'))
{
// Whoops, we don't have a page for that!
show_404();
}
$data['title'] = ucfirst($page); // Capitalize the first letter
$this->load->view('templates/header', $data);
$this->load->view('resources/multiplication'.$page, $data);
$this->load->view('templates/footer', $data);
}
Directory
-Application
--views
---resources
----multiplication
-----selector.php
I'm trying to load selector.php with localhost://resources/load/selector but it just shows a 404. I can't get the classes to work with sub directories in the view folders.
If I move selector into /resources, it loads no problem. How can I get load method to load selector.php?
</div>