example.php 650 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. !defined('BASEPATH') && exit('No direct script access allowed');
  3. class Example extends MY_Main_Controller
  4. {
  5. public function __construct()
  6. {
  7. parent::__construct();
  8. $this->load->model('example_model','example');
  9. }
  10. public function index()
  11. {
  12. $data['ex1'] = $this->example->all('1');
  13. $data['ex2'] = $this->example->all('2');
  14. $data['ex3'] = $this->example->all('3');
  15. $data['ex4'] = $this->example->all('4');
  16. $data['ex5'] = $this->example->all('5');
  17. $data['ex6'] = $this->example->all('6'); // 智慧消防
  18. $this->load_view($data);
  19. }
  20. }
  21. ?>