EVOLUTION-NINJA
Edit File: Course_Model1.php
<?php namespace App\Models\Admin; use CodeIgniter\Model; class CourseAvailableTimingsModel extends Model { protected $table = 'course_available_timings'; // Set the table name protected $primaryKey = 'id'; // Set the primary key field name protected $allowedFields = [ 'course_id', 'course_type', 'available_type', 'from_time', 'to_time', 'delete_status', 'updated_by', 'updated_at', ]; // You can define any other model-related configurations here. public function getCourseTimings($courseId) { // Example method to retrieve course timings for a specific course return $this->where('course_id', $courseId) ->where('delete_status', 'ACTIVE') ->findAll(); } // Define other methods to work with the CourseAvailableTimings table as needed. }