Welcome Guest, Not a member yet? Register   Sign In
Tutorial for CI 3 - news section - bug found
#5

(08-20-2015, 01:13 PM)Carpintonto Wrote: A separate issue in the same section -

Seems the documentation/tutorial is just a bit behind  the code version 3

Where the sql example

Code:
CREATE TABLE news (
       id int(11) NOT NULL AUTO_INCREMENT,
       title varchar(128) NOT NULL,
       slug varchar(128) NOT NULL,
       text text NOT NULL,
       PRIMARY KEY (id),
       KEY slug (slug)
);

the example News_model.php will actually look for table CodeIgniternews because application/config/database.php now has


Quote:'dbprefix' => 'CodeIgniter',   //line # 72

instead of an empty string for dbprefix.

For my first run through, I am modifying the code to work with the tutorial.

That prefix is never suggested by the tutorial.
Reply


Messages In This Thread
RE: Tutorial for CI 3 - news section - bug found - by Narf - 08-20-2015, 02:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB