I have just started using CodeIgninter and have been looking at the documentation. My problem is with the following code from the tutorial. When I call it as is, I only get the 404 page. If I remove the ! the correct page displays. So obviously the page exists and can be found by the code.
What am I missing?
public function view($page = ‘home’)
if ( ! file_exists(‘application/views/pages/’.$page.’.php’))
// Whoops, we don’t have a page for that!
$data[‘title’] = ucfirst($page); // Capitalize the first letter