Welcome Guest, Not a member yet? Register   Sign In
Selecting category details and products linked with the same category.
#14

[eluser]Bigil Michael[/eluser]
thanku so much
now it is working but it generates another problem

this is my original controller
Code:
function index($pgoffset='')
    {
        $this->load->model('Home_model');
        $this->data['row_offer'] = $this->Home_model->select_offer();
        $this->data['result_news'] = $this->Home_model->select_news();
        
        $config['per_page'] = 2;
        $config['total_rows'] = $this->Fleets_model->get_total();
        $config['base_url'] = site_url().'/fleets/index/';
        $config['uri_segment'] = 3;
        $build_array = array();
        $fleets = $this->Fleets_model->select_fleets($config['per_page'], $pgoffset);
        
        foreach($fleets as $row){
            $build_array[] = array (
                'fleets_array' => $row,
                'listefleets_array' => $this->Fleets_model->list_fleets($row['category_id'])
            );
        }
        $this->data = array (
        'meow' => $build_array
        );
        $this->data['pgoffset'] = $pgoffset;
        $this->pagination->initialize($config);
        $this->data['pagetitle'] = 'Fleets & Rates';
        $this->load->view('fleets',$data);    
    }
iam sending another 2 results for that purticular view

$this->data['row_offer'] = $this->Home_model->select_offer();
$this->data['result_news'] = $this->Home_model->select_news();

these 2 steps are not working that means there show an error

Message: Undefined variable: row_offer


Messages In This Thread
Selecting category details and products linked with the same category. - by El Forum - 02-05-2011, 03:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB