title: call function in view
body: <p>i wanna ask something about codeigniter</p>
  
  <p>here is the view</p>
  
  <pre><code>&lt;input class="mws-textinput" name="div_id" type="text" readonly="readonly"&gt;
  &lt;input class="mws-textinput" name="div_name" type="text" readonly="readonly"&gt;
  &lt;input id="mws-jui-dialog-mdl-btn" class="mws-button blue small" type="button" value="Show Modal Dialog"&gt;
  &lt;div id="mws-jui-dialog"&gt;
       &lt;p&gt;&lt;? (**i wanna call the function here**) ?&gt;&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>here is the function in controller</p>
  
  <pre><code>function dialog(){
          $query = mysql_query('select * from tbl_divisi');
          while($isi=mysql_fetch_array($query)){
              echo '&lt;a href="E:/web/intranet.net/application/views/user/tabel.php" onclick="setParent(\'$isi[div_id]\',\'$isi[div_name]\')"&gt;&lt;/a&gt;';
          }
      }
  </code></pre>
  
  <p>what should i do?</p>