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

(This post was last modified: 08-20-2015, 01:39 PM by Carpintonto. Edit Reason: misstated db error )

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.
Reply


Messages In This Thread
RE: Tutorial for CI 3 - news section - bug found - by Carpintonto - 08-20-2015, 01:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB