Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class combo extends CI_Controller{
- public function __construct() {
- parent::__construct();
- $this->load->model('Chain_combo','CC');
- }
- public function index(){
- $data['stream'] = $this->CC->Get_stream ();
- $this->load->view('opp/form_input',$data);
- }
- function select_materi(){
- if('IS_AJAX') {
- $data['option_materi'] = $this->CC->Get_train();
- $this->load->view('opp/materi',$data);
- }
- }
- function submit(){
- echo "Stream = ".$this->input->post("stream");
- echo "<br>";
- echo "Materi = ".$this->input->post("materi");
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment