Welcome Guest, Not a member yet? Register   Sign In
Following news section tutorial - 404 Page Not Found
#1

Hi

I am new to php and have just recently downloaded CodeIgniter and am following the tutorial for the news section. The problem I am encountering is with the following code from the news overview page index.php here application/views/news/index.php.

Code:
    <p>
      <a href="<?php echo $news_item['slug'] ?>">View article</a>
    </p>

It get the 404 Page Not Found error (details showing in URL is http://localhost/CodeIgniter/index.php/t...field_slug)

But when I put in this code, it displays the data from $news_item['slug'] Ok
Code:
    <!-- test div -->
    <div>
        <?php echo $news_item['slug'] ?>
    </div>

I have gone back and checked all my code against that in the tutorial and this is not the problem. Has anyone else encountered this problem?
Reply


Messages In This Thread
Following news section tutorial - 404 Page Not Found - by PamelaK - 06-07-2015, 06:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB