MEMBUAT OLSHOP DENGAN CRUD CODEIGNITER MSP Bimasakti 05111840000070 David Bintang 05111840000090 PEMBUATAN HALAMAN UTAMA 1. Membuat database toko.sql kemudian membuat table products di MySQL. CREATE TABLE `products` ( `id` int(10) NOT NULL, `name` varchar(50) NOT NULL, `description` text NOT NULL, `price` int(9) NOT NULL, `stock` int(3) NOT NULL, `image` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ALTER TABLE `products` ADD PRIMARY KEY (`id`); Struktur dari table products: 2. Membuat file Welcome.php di dalam folder C:\xampp\htdocs\toko-online\application\controllers. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Welcome extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('model_products'); } public function index() { $data['products'] = $this->model_products->all(...