Posts

Showing posts with the label CodeIgniter4

CodeIgniter 4(part2)

Image
  In this we will learn how to create database with migration First we need create database from mysql Activate xampp mysql then go to localhost insert your user and pass and enter the database then create database After that go to your terminal and in your directory project type this code : $ ~ php spark make:migration [your table name] Then Enter You will get notification that table have successfully created Next you will need open the migration file with code editor and edit it In function up you will need type the code to create table Read  CI Documentation After finished the code then go back to terminal then type this code $ ~ php spark migrate Then you will see the notification that table successfully migrate to your database For next part we will learn create controller from cli

CodeIgniter 4 (part1)

Image
  This is Tutorial CodeIgniter 4 for Beginner.  This Framework PHP is popular used by programmer who is started develop web with framework.  Requirement : 1.) (optional) Composer 2.) Xampp / Wamp / Laragon 3.) Git  Install with Composer : if you have composer already installed in your computer then you're install CI framework in your computer by typing this code in terminal or gitbash $ ~ composer create-project codeigniter4/appstarter [name of your project] [name of your project] example = project-ci Wait for the installation finished then go to your project by typing $ ~ cd [name of your project] then test it by typing $ ~ php spark serve if it's run it will showing you this message Next part we will learn how to create database with migration                                                   part 2 >>