title: I want to call bootstrap modal using calling function in controller of codeigniter
body: <p>Here I am calling view of bootstrap modal using codeigniter function. But its not working proper. Here is code:</p>
  
  <p>In codeigniter:</p>
  
  <pre><code>function alert_breaktime()
  {
     $this-&gt;load-&gt;view('break_alert');
  }
  </code></pre>
  
  <p>break_alert.php:</p>
  
  <pre><code>&lt;div class="modal-dialog"&gt;
      &lt;div class="modal-content"&gt;
              &lt;div class="modal-header"&gt;
                  &lt;button type="button" class="close" data-dismiss="modal"&gt;&amp;times;&lt;/button&gt; &lt;h3 class="modal-title" style="color: red;font-weight: bold;"&gt;Message Alert !&lt;/h3&gt;
              &lt;/div&gt;
              &lt;?php //$attributes = array('class' =&gt; 'bs-example form-horizontal'); echo form_open(base_url().'activity/add',$attributes); ?&gt;
              &lt;div class="modal-body"&gt;
                  &lt;div class="message" style="font-size: x-large;"&gt;
                      Hello, &lt;?php
                      $user_id = $this-&gt;tank_auth-&gt;get_user_id();
                      $names = $this-&gt;user_profile-&gt;get_profile_details($user_id,'fullname') ? $this-&gt;user_profile-&gt;get_profile_details($user_id,'fullname') : $this-&gt;tank_auth-&gt;get_username();
  
                      echo $names ?&gt; &lt;br&gt;
                      Please do not forget to &lt;b&gt;Break Out..!!&lt;/b&gt;
  
                  &lt;/div&gt;
          &lt;div class="modal-footer"&gt;
                      &lt;a href="#" class="btn btn-default" data-dismiss="modal"&gt;&lt;?=lang('close')?&gt;&lt;/a&gt; 
  
          &lt;/div&gt;
              &lt;/div&gt;
  
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>