@@ -18,13 +18,7 @@ commands (mysql, MySQL Workbench, or phpMyAdmin).
1818You need to create a database that can be used for this tutorial,
1919and then configure CodeIgniter to use it.
2020
21- Using your database client, connect to your database and run the SQL command below (MySQL).
22- Also, add some seed records. For now, we'll just show you the SQL statements needed
23- to create the table, but you should be aware that this can be done programmatically
24- once you are more familiar with CodeIgniter; you can read about :doc: `Migrations <../dbmgmt/migration >`
25- and :doc: `Seeds <../dbmgmt/seeds >` to create more useful database setups later.
26-
27- ::
21+ Using your database client, connect to your database and run the SQL command below (MySQL)::
2822
2923 CREATE TABLE news (
3024 id INT UNSIGNED NOT NULL AUTO_INCREMENT,
@@ -35,12 +29,15 @@ and :doc:`Seeds <../dbmgmt/seeds>` to create more useful database setups later.
3529 KEY slug (slug)
3630 );
3731
32+ Also, add some seed records. For now, we'll just show you the SQL statements needed
33+ to create the table, but you should be aware that this can be done programmatically
34+ once you are more familiar with CodeIgniter; you can read about :doc: `Migrations <../dbmgmt/migration >`
35+ and :doc: `Seeds <../dbmgmt/seeds >` to create more useful database setups later.
36+
3837A note of interest: a "slug", in the context of web publishing, is a
3938user- and SEO-friendly short text used in a URL to identify and describe a resource.
4039
41- The seed records might be something like:
42-
43- ::
40+ The seed records might be something like::
4441
4542 INSERT INTO news VALUES
4643 (1,'Elvis sighted','elvis-sighted','Elvis was sighted at the Podunk internet cafe. It looked like he was writing a CodeIgniter app.'),
@@ -53,9 +50,7 @@ Connect to Your Database
5350The local configuration file, ``.env ``, that you created when you installed
5451CodeIgniter, should have the database property settings uncommented and
5552set appropriately for the database you want to use. Make sure you've configured
56- your database properly as described :doc: `here <../database/configuration >`.
57-
58- ::
53+ your database properly as described :doc: `here <../database/configuration >`::
5954
6055 database.default.hostname = localhost
6156 database.default.database = ci4tutorial
0 commit comments