Thanks for the reply Aken.
I have some PHP experience, not a lot. I can get around. I’m newer to OOP so that may be more of a weakness than PHP. The OOP concept is not difficult, but the details of keeping track of who’s doing what when and inheriting what, when, why, etc. has been a bigger learning curve. However, pressing on:
I’m using version 2.1.3 of the User Guide Tutorial.
The specific problem I’m having is in working with the tutorial. I’ve worked through the first static pages part and everything seems to be OK on that.
I’m getting stymied on the second tutorial on the database query (I’m using a MySQL implementation). The database, table, and user access are in place and work. The models, controllers, and views are coded and placed exactly as shown in the tutorial. I can access the database and table info. I’ve modified the default routes file as specified in the tutorial. The first page (.../index.php/news) of the tutorial displays the stored table info as expected. Also, when I hover over the “View article” link(s), I see the expected URI info for the table row to access. However, when I click that link is where I get a 404 - Page not found message.
During a diagnostic, I changed the route (in config/routes.php) for the route “news/(:any)” to a non-wild card destination, and then my browser does navigate to the specified page. I’m not wondering if something isn’t “goofy” in the tutorial’s code somewhere so that the view method is not being invoked properly? Maybe something changed during the last update that made the framework not like the tutorial syntax?
The code for application/views/news/view.php seems tenuous. Also, the array selector ‘news_item’ seems to be undefined in the public function view(slug).
I suspect it’s more likely that I’ve got something wrong. My PHP debugger is not finding anything (Eclipse).
Thanks again for any guidance.