Tutorial help |
Hi,
I'm just trying CI the first time. I'm following the tutorial from the manual here: https://www.codeigniter.com/user_guide/t...ction.html I managed to get to the "Routing" section, but I'm getting an error when I try to access the URL: http://localhost:8080/codeigniter/index.php/news The error is: Quote:Fatal error: Cannot redeclare News::index() in F:\wamp64\www\codeigniter\application\controllers\News.php on line 32 Here is the code from my News.php PHP Code: <?php Thanks
The error message says it all ... you have declared the index function twice: once below your constructor and again just before the end of the class. I think that the second version is meant to replace the first
|
Welcome Guest, Not a member yet? Register Sign In |