Postingan

Menampilkan postingan dari Mei, 2022

ci44- perpustakaan

  Controllers – input.php <?php   namespace App\Controllers ;   use App\Models\ M_buku ; use CodeIgniter\ CodeIgniter ; use CodeIgniter\Config\ Config ;   class Input extends BaseController {     protected $M_buku ;       public function __construct ()     {         $this -> M_buku = new M_buku ();     }     public function index ()     {         $data = [             'title'         => "Form Data Perpustakaan" ,             'validation'    => \config\ Services :: Validation ()         ];         return view ( 'v_form_perpus' , $data );     }       public function   mhs ()     {         $data = [ 'title' => "Form Data Mahasiswa" ];         return view ( 'v_form_mhs' , $data );     }       //============ CRUD Perpus =============       public function sperpus ()     {           //Kelola Gambar         $buku = $th