This page explanation:
Information entered in the form is passed to the controller.

This page function:
Register

 

① Controller

Controller:/app/controller/customerController.php

class customer{
   //Registration Functions
   public function action_register() {
      //Get POST data
      $last_name = isset($_POST['last_name']) ? htmlspecialchars($_POST['last_name']) : '';
      $first_name = isset($_POST['first_name']) ? htmlspecialchars($_POST['first_name']) : '';
      $furigana = isset($_POST['furigana']) ? htmlspecialchars($_POST['furigana']) : '';
      $birthday = isset($_POST['birthday']) ? htmlspecialchars($_POST['birthday']) : '';
      $gender = isset($_POST['gender']) ? htmlspecialchars($_POST['gender'] ): '';
      $blood = isset($_POST['blood']) ? htmlspecialchars($_POST['blood']) : '';
      $note = isset($_POST['note']) ? htmlspecialchars($_POST['note']) : '';
      
      //Registration process. START ※idiorm library
      //↓Create a record in the database table "customer".
      $sql = ORM::for_table('customer')->create();
      $sql ->last_name = $last_name;
      $sql ->first_name = $first_name;
      $sql ->furigana = $furigana;
      $sql ->birthday = $birthday;
      $sql ->gender = $gender;
      $sql ->blood = $blood;
      $sql ->note = $note;
      $sql ->save();
      //Registration process. END ※idiorm library
      
      //↓class "customer" to redirect.
      redirectUrl('customer');
   }
}