Migration server

  1. Copy old server data then paste to new server
  2. Make new database user
  3. Create database & tie database user
  4. Add system user
  5. Then add web applications tie system user with web applications
  6. set ssl choose HSTS & Server Side Redirection for Http to Https Redirection 
  7. after that can set git for auto deploy code from repo
  8. must add deployment key
  9. Update database

Set up Gitlab project at new mac

  1. Download home brew at https://brew.sh/
  2. Generate ssh follow at this link https://blog.azwan.net/?s=ssh
  3. Download Mamp at this link https://www.mamp.info/en/windows/
  4. Download Sequel pro at this link https://www.sequelpro.com/
  5. Clone project from gitlab. First copy link project using ssh link at gitlab. Then paste this command with link project : git clone {repository link }
  6. To reset root password for localhost follow this link https://www.tech-otaku.com/local-server/resetting-mamp-mysql-root-user-password/

Crud Codeigniter 3

Set Up Codeigniter 3

  • Set up database
    1. Go to folder config
    2. Go to file database.php
    3. Set password to root
    4. Set database name
config/database example code
  • Set up config/autoload.php
    1. Go to config folder
    2. Go to autoload file
    3. Set autoload for libraries
    4. Then set autoload for helper
example for autoload[‘libraries’]
example for autoload[‘url’]
  • Remove index.php
    1. In the project folder add .htaccess file
    2. Then add code like example at file .htaccess
    3. Then go to config folder & go to config.php
    4. Remove index.php at config index page
.htaccess example
config index page example
  • Set base url
    1. Go to config folder
    2. Then go to config.php file
    3. Set url for base url
example config[‘base_url’] tutorial is project folder name
  • Add models file
    1. Go to applications
    2. Then go to models and add model file
    3. Can add function get list for query all data in the table
    4. Then add function get for query one row data in the table get data by id
    5. Add function insert for insert data in the table
    6. Add function update for update data in the table
    7. Add function delete for delete data in the table
example code for model file
  • Add controller
    1. Go to applications
    1. Then, go to controllers and add controller file
    2. Can load model u already added
    3. After that, add function listing for list all data from database
    4. Besides, add function add for display form for user
    5. Then, add function add_process for insert data in database after user fill the input
    6. Then add function update for user update data in database get data by id for value input in form
    7. Add function update_process for update data in database
    8. Add function delete for user delete data in database
example controller code
  • Add view
    1. Add view for list & form
example code list
example code form

MVC

Model – View – Controller (MVC)

Model

  1. Menerima permintaan data daripada controller.
  2. Menghasilkan query seperti permintaan yang diminta.
  3. Menghantar data kepada controller.

View

  1. Menghasilkan user interface.
  2. Berinteraksi bersama user.
  3. Memberikan data kepada user.

Controller

  1. Menjadi perantaraan kepada view dan juga model.
  2. Meminta data kepada model.
  3. Menghantar data kepada view.
  4. Kebanyakkan logik akan berada didalam controller.

My First Week Internship at ADS Web Services

 1. Free Code Camp

Free Code Camp is a site that teaches me about the basics of code. Besides, Free Code Camp has a wide range of exercises capable of sharing my coding knowledge.

2. Html in Free code camp

In the Free code camp I can learn more about Html. Next I can learn various functions in Html e.g. function delete, upload picture, and others.

3. Css in Free Code Camp

There is also learning about Css in the Free Code Camp. A lot of what I can do with this Css exercise is basic css, about font size changes, and so on.

4. Javascript in Free Code Camp

JavaScript is the Programming Language for the Web. In the Free code camp there is a principle for JavaScript. At first I was very weak on JavaScript with the free code camp was able to help me.

5.Php exercise in w3school.

W3schools is a web developers app, with tutorials and references which will help me to learn languages  PHP. Next, I can do exercises and quiz about PHP while learning. This can help me in increasing my knowledge in PHP.