Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- defined('BASEPATH') or exit('No direct script access allowed');
- class Destination extends CI_Controller
- {
- /**
- * Index Page for this controller.
- *
- * Maps to the following URL
- * http://example.com/index.php/welcome
- * - or -
- * http://example.com/index.php/welcome/index
- * - or -
- * Since this controller is set as the default controller in
- * config/routes.php, it's displayed at http://example.com/
- *
- * So any other public methods not prefixed with an underscore will
- * map to /index.php/welcome/<method_name>
- * @see https://codeigniter.com/user_guide/general/urls.html
- */
- public function index()
- {
- $var['url'] = base_url();
- $var['assets'] = $var['url'] . "assets/themes/tourism/";
- $var['title'] = "Destination - Indonesia Tourism Investment";
- $var['content'] = $this->load->view("destination/index.php", $var, true);
- $var['modal'] = $this->modal_destination();
- $this->load->view('template/template.php', $var);
- }
- public function modal_destination()
- {
- $this->load->library('Mylib');
- $select = $this->mylib->selectpicker($select_data = array("Mustard", "Orange"));
- $data_modal['id'] = "addDestination";
- $data_modal['title'] = "Judul";
- $data_modal['content'] = '
- <div class="container-fluid">
- <div class="row">
- <div class="col-6">
- <div class="form-group row no-gutters">
- <label class="col-5 col-form-label">Select Province</label>
- <div class="col-7">
- ' . $select . '
- </div>
- </div>
- </div>
- <div class="col-6">
- <div class="form-group row no-gutters">
- <label class="col-5 col-form-label">Select City</label>
- <div class="col-7">
- <select class="selectpicker">
- <option>Mustard</option>
- <option>Ketchup</option>
- <option>Barbecue</option>
- </select>
- </div>
- </div>
- </div>
- </div>
- </div>
- ';
- $data_modal['btn'] = "btnDestination";
- $this->load->view("library/modal.php", $data_modal);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement