APLIKASI PENGOLAHAN DATA NILAI SISWA BERBASIS WEB MENGGUNAKAN CODEIGNITER - E-RAPOERT

3 min read 1 day ago
Published on Nov 03, 2025 This response is partially generated with the help of AI. It may contain inaccuracies.

Table of Contents

Introduction

This tutorial will guide you through the process of creating a web-based student grade processing application using CodeIgniter, referred to as E-RAPOERT. This application will help in managing student grades efficiently, making it a valuable tool for educators and school administrators.

Step 1: Setting Up Your Development Environment

  1. Install XAMPP

    • Download XAMPP from the Apache Friends website.
    • Follow the installation instructions specific to your operating system.
  2. Download CodeIgniter

    • Visit the CodeIgniter website and download the latest version.
    • Extract the downloaded files to the htdocs directory in your XAMPP installation folder.
  3. Create a Database

    • Open phpMyAdmin by navigating to http://localhost/phpmyadmin.
    • Create a new database for your application (e.g., e_rapoert).

Step 2: Configuring CodeIgniter

  1. Set Up Database Configuration

    • Navigate to the application/config directory in your CodeIgniter installation.
    • Open the database.php file and configure the database settings:
      $db['default'] = array(
          'dsn'   => '',
          'hostname' => 'localhost',
          'username' => 'root',
          'password' => '',
          'database' => 'e_rapoert',
          'dbdriver' => 'mysqli',
          ...
      );
      
  2. Base URL Configuration

    • Open the config.php file in the same application/config directory.
    • Set the base URL:
      $config['base_url'] = 'http://localhost/your_project_folder/';
      

Step 3: Creating Models, Views, and Controllers

  1. Create a Model for Student Data

    • In application/models, create a file named Student_model.php.
    • Define functions to interact with the database, such as adding, updating, and retrieving student grades.
      class Student_model extends CI_Model {
          public function get_all_students() {
              return $this->db->get('students')->result();
          }
          ...
      }
      
  2. Create a Controller

    • In application/controllers, create a file named Student.php.
    • Load the model and define methods for each action (e.g., index, create, edit).
      class Student extends CI_Controller {
          public function index() {
              $this->load->model('Student_model');
              $data['students'] = $this->Student_model->get_all_students();
              $this->load->view('students/index', $data);
          }
          ...
      }
      
  3. Create Views

    • In application/views, create a directory named students.
    • Create index.php, create.php, and edit.php files for the respective views.
    • Use HTML and embedded PHP to display student data and forms for input.

Step 4: Implementing Functionality

  1. Create Forms for Data Entry

    • Use HTML forms in your views to allow teachers to input and update student grades.
    • Ensure form submission is handled in your controller.
  2. Add Validation

    • Utilize CodeIgniter's form validation library to enforce rules on the data submitted.
  3. Display Student Grades

    • In your index view, loop through the data passed from the controller and display it in a table format.

Conclusion

You have now set up a basic web application for processing student grades using CodeIgniter. Key steps included setting up your development environment, configuring CodeIgniter, and creating models, views, and controllers.

Next steps could include enhancing the application with user authentication, generating reports, or improving the user interface with CSS frameworks. Consider exploring additional CodeIgniter features to expand your application’s capabilities.