aries_

contoller_chain

Jul 30th, 2012
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.72 KB | None | 0 0
  1. <?php
  2.  
  3.     class combo extends CI_Controller{
  4.  
  5.         public function  __construct() {
  6.             parent::__construct();
  7.            
  8.               $this->load->model('Chain_combo','CC');
  9.     }
  10.    
  11.     public function index(){
  12.     $data['stream'] = $this->CC->Get_stream ();
  13.      
  14.      $this->load->view('opp/form_input',$data);
  15.     }
  16. function select_materi(){
  17.             if('IS_AJAX') {
  18.             $data['option_materi'] = $this->CC->Get_train();
  19.         $this->load->view('opp/materi',$data);
  20.             }
  21.  
  22.     }
  23.  
  24.         function submit(){
  25.             echo "Stream = ".$this->input->post("stream");
  26.             echo "<br>";
  27.             echo "Materi = ".$this->input->post("materi");
  28.         }
  29.    
  30.  
  31.     }
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment