[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
BACKUP C 19-12
/
XAMPP74
/
htdocs
/
simaku
/
application-old
/
controllers
/
[
Home
]
File: Coba.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Coba extends CI_Controller { function __construct(){ parent::__construct(); $this->load->model('Mspp','',TRUE); $this->load->model('Munit','',TRUE); $this->load->model('Mkeg','',TRUE); $this->load->model('Makun','',TRUE); } /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controller is set as the default controller in * config/routes.php, it's displayed at http://example.com/ * * So any other public methods not prefixed with an underscore will * map to /index.php/welcome/<method_name> * @see http://codeigniter.com/user_guide/general/urls.html */ public function index() { //$data['query'] = $this->Makun->get_kegiatan_spm_verifikasi_all(); $this->load->view('jquery/ajax_php_jquery/lesson27_jqAjaxCRUD'); } function save(){ $masuk = array('nama' => $this->input->post('nama'), 'umur' => $this->input->post('umur'), 'email' => $this->input->post('email')); $this->Munit->add_data($masuk); $this->load->view('jquery/save'); } } /* End of file welcome.php */ /* Location: ./application/controllers/welcome.php */