title: Loading a view as a modal pop up in CodeIgniter
body: <p>I am new to CodeIgniter and also new to MVC web application. I have problem in displaying a php page in modal pop up.
  Code below shows first view.</p>
  
  <pre><code>&lt;table id="tblTask" class="tblTasks"&gt;
      &lt;tr&gt;
        //I am showing my data here
      &lt;/tr&gt;
   &lt;/table&gt;
  
   function addRowHandlers() {
      var tables = document.getElementsByClassName("tblTasks");
      [].forEach.call(tables, function (table) {
        var rows = table.getElementsByTagName("tr");
        for (i = 0; i &lt; rows.length; i++) {
            var currentRow = table.rows[i];
            var createClickHandler = 
                function(row) 
                {
                    return function() { 
                              //code to get parameter 1 and 2
                              window.location = "&lt;?php echo base_url() . "tasks/getInfos/"; ?&gt;" + parameter1 + "/" + parameter2;
                          };
                };
  
            currentRow.onclick = createClickHandler(currentRow);
        }
      });
  }
  window.onload = addRowHandlers(); 
  </code></pre>
  
  <p>This is view 1 where I have a table which shows my data and the script is used to call a controller when a table row is clicked.</p>
  
  <pre><code>public function getInfos(parameter1, $parameter2){
      $data['infos']  = $this-&gt;my_model-&gt;get_infos($parameter1, $parameter2);
  
      $this-&gt;load-&gt;view('infos/information.php', $data);
  }
  </code></pre>
  
  <p>How can I show the info/infomation.php page as a modal pop up in the first view (where the controller was initially called). I hope someone will help me with this.</p>
  
  <p>Thank you.</p>