-
Notifications
You must be signed in to change notification settings - Fork 0
/
company.php
31 lines (24 loc) · 912 Bytes
/
company.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Company extends CI_Controller {
public function index()
{
$data = array();
$this->load->model('product_model');
$this->load->model('page_model');
$data['uko'] = $this->page_model->getNews('1');
$data['kaz'] = $this->page_model->getNews('2');
$data['zar'] = $this->page_model->getNews('3');
$data['title'] = "Продукция";
$id=$_GET['id'];
$icategory=$_GET['icategory'];
if (isset($_GET['id']) && isset($_GET['icategory']) ) {
$data['products'] = $this->product_model->getProducts();
}
$this->load->view('pre_header',$data);
$this->load->view('header');
$this->load->view('company');
$this->load->view('footer2');
}
}
/* End of file Commercial.php */
/* Location: ./application/controllers/Commercial.php */