• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dynamic form_dropdown()

#11
[eluser]selftaught[/eluser]
complete controller:
Code:
<?php

class Site extends CI_Controller {
    
    public function index()
    {
        $data['main_content'] = 'index';
        $this->load->view('template',$data);
    }
    
    function about_us()
    {
        $data['main_content'] = 'about_us';
        $this->load->view('template',$data);        
    }
        
    function trx_form()
    {
        $data['main_content'] = 'trx_form';
        //$this->load->view('template',$data);
        
        $this->load->model('trx_model');
        
        $data['query'] = $this->trx_model->get_markets();
        $this->load->view('template',$data,'trx_form',$data);
        
        //var_dump($data);
        //exit;
    }
}


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.