title: $variable with site_url codeigniter
body: <p>I would like to know if it is possible to get a $variable id mixed in with the codeigniter. </p>
  
  <p>Currently just shows <code>http://localhost/codeigniter/codeigniter-cms/0</code> </p>
  
  <p>I just need it to display <code>http://localhost/codeigniter/codeigniter-cms/admin/setting</code> with id hidden and still access this controller.</p>
  
  <p>But If create new website it has different ID so different settings.</p>
  
  <pre><code>foreach ($results as $result) {
  $data['websites'][] = array(
  'website_id' =&gt; $result-&gt;website_id,
  'name' =&gt; $result-&gt;name,
  'url' =&gt; $result-&gt;url,
  'edit'     =&gt; site_url('admin/setting') . $result-&gt;website_id
  );
  }
  </code></pre>
  
  <p><strong>View</strong></p>
  
  <pre><code>&lt;?php if ($websites) { ?&gt;
  &lt;?php foreach($websites as $website) { ?&gt;
  &lt;tr&gt;
  &lt;td class="text-center"&gt;&lt;?php if (in_array($website['website_id'], $selected)) { ?&gt;
  &lt;input type="checkbox" name="selected[]" value="&lt;?php echo $website['website_id']; ?&gt;" checked="checked" /&gt;
  &lt;?php } else { ?&gt;
  &lt;input type="checkbox" name="selected[]" value="&lt;?php echo $website['website_id']; ?&gt;" /&gt;
  &lt;?php } ?&gt;&lt;/td&gt;
  &lt;td&gt;&lt;?php echo $website['name'];?&gt;&lt;/td&gt;
  &lt;td&gt;&lt;?php echo $website['url'];?&gt; &lt;/td&gt;
  &lt;td class="text-right"&gt;&lt;a href="&lt;?php echo $website['website_id']; ?&gt;" class="btn btn-primary"&gt;&lt;i class="fa fa-pencil"&gt;&lt;/i&gt; Edit Website&lt;/a&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;?php } ?&gt;
  &lt;?php } else { ?&gt;
  &lt;tr&gt;
  &lt;td class="text-center" colspan="4"&gt;NO RESULTS&lt;/td&gt;
  &lt;/tr&gt;
  &lt;?php } ?&gt;
  </code></pre>