Welcome Guest, Not a member yet? Register   Sign In
error page not found

good day,

am new to code igniter, been practising with tuorial on the manual to create a blog, 

but my view page keeps saying page not found, 

this is my index: 
<h2><?php echo $title; ?></h2>

<?php foreach ($news as $news_item): ?>

        <h3><?php echo $news_item['title']; ?></h3>
        <div class="main">
                <?php echo $news_item['text']; ?>
        <p><a href="<?php echo site_url('news/'.$news_item['slug']); ?>">View article</a></p>

<?php endforeach; ?>

this is the view page for each post : view.php 
echo '<h2>'.$news_item['title'].'</h2>';
echo $news_item['text'];

this is my routes: 
$route['news/create'] = 'news/create';
$route['news/(:any)'] = 'news/view/$1';
$route['news'] = 'news';
$route['(:any)'] = 'pages/view/$1';
$route['default_controller'] = 'pages/view';

and i confirmed that i have the details in the database. 

thank you if you can help

Messages In This Thread
error page not found - by noblesomto - 08-31-2017, 02:39 AM
RE: error page not found - by ktmonty - 08-31-2017, 10:51 PM

Theme © iAndrew 2016 - Forum software by © MyBB