Tutorial 1 : Pembuatan Database CodeIgniter Sederhana
1. Buat database dengan nama d4b6 di mySql
2. Ubah file .htaccess di C:\xampp\htdocs\d4b6\.htaccess
3. Ubah file config.php C:\xampp\htdocs\d4b6\application\config\config.php
4. Ubah file autoload. php C:\xampp\htdocs\d4b6\application\config\autoload.php
5. Ubah file database.php C:\xampp\htdocs\d4b6\application\config\database.php
6. Membuat kelas controllers di C:\xampp\htdocs\d4b6\application\controllers\news.php
7. Buatlah halaman view
- header C:\xampp\htdocs\d4b6\application\views\view_header.php
-news show C:\xampp\htdocs\d4b6\application\views\view_news_show.php
-footer C:\xampp\htdocs\d4b6\application\views\view_footer.php
8. Edit file autoload C:\xampp\htdocs\d4b6\application\config\autoload.php
9. buat kelas models di C:\xampp\htdocs\d4b6\application\models\ModelNews.php
Tadaa.....
tampilan udah jadinya :
apakah bisa membuat databasenya langsung di MySQL? tanpa lewat codeigniter?
ReplyDeletebisa langsung kok lewat mysql.
Deleteatau bisa import databasenya langsung dengan format .sql