Beispiel #1
0
 public function load_manufacturers()
 {
     $manufacture_service = new Manufacture_service();
     $data['names'] = $manufacture_service->get_manufacture_name();
     echo $this->load->view('manufacturers/manufacture_list_view', $data);
 }
Beispiel #2
0
 function index()
 {
     $manufacture_service = new Manufacture_service();
     $vehicle_model_service = new Vehicle_model_service();
     $body_type_service = new Body_type_service();
     $fuel_type_service = new Fuel_Type_service();
     $transmission_service = new Transmission_service();
     $district_service = new District_service();
     $content_service = new Content_service();
     $vehicle_advertisments_service = new Vehicle_advertisments_service();
     $vehicle_news_service = new Vehicle_news_service();
     $comment_service = new Comments_service();
     $data['website_comments'] = $comment_service->get_all_comments();
     $data['manufactures'] = $manufacture_service->get_all_active_manufactures_for_home();
     //$data['models']        = $vehicle_model_service->get_all_active_vehicle_models();
     $data['body_types'] = $body_type_service->get_all_active_body_types();
     $data['fuel_types'] = $fuel_type_service->get_all_active_fuel_types();
     $data['transmissions'] = $transmission_service->get_all_active_transmissions();
     $data['locations'] = $district_service->get_all_districts();
     $data['why_us'] = $content_service->get_content_by_hcodes('WHYUS');
     if (isset($this->session)) {
         $vehicle_results = $vehicle_advertisments_service->get_recently_viewed_vehicles($this->session->userdata('USER_ID'));
     }
     $data['vehicle_results'] = $vehicle_results;
     $data['names'] = $manufacture_service->get_manufacture_name();
     //        $data['logos'] = $manufacture_service->get_manufacture_logo();
     $data['price_drop_vehicles'] = $vehicle_advertisments_service->get_price_drop_vehicles(4);
     //Ashani
     $data['latest_vehicles'] = $vehicle_advertisments_service->get_new_arrival(2);
     //author-Ishani
     $data['vehicle_news_results'] = $vehicle_news_service->get_vehicle_news();
     //author-Ishani
     $data['featured_vehicles'] = $vehicle_advertisments_service->get_featured_advertisements(4);
     $data['popular_vehicles'] = $vehicle_advertisments_service->get_popular_advertisements();
     //Ashani
     $parials = array('content' => 'content_pages/home_content', 'new_arrivals' => 'vehicle_adds/new_arrivals');
     $this->template->load('template/main_template', $parials, $data);
 }