CodeIgniter Forums
how to route url? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: how to route url? (/thread-16303.html)



how to route url? - El Forum - 03-03-2009

[eluser]tashigiri[/eluser]
hello all..
plis help me..
1. i have some url like this "http://localhost/klik-andri/images/banner_allianz.jpg" and i want to change to be like this "http://localhost/klik-andri/banner_allianz.jpg"..
should i delete "images" folder for this case??

2. and just like that, i have some code like this
Quote:<?php
$i = 0;
foreach ($chanels as $chanel)
{
if($i == 0)
{
echo "<tr>";
}
?&gt;
<td width="492" class="channel_list">&lt;?php echo anchor('channel/index/id/'.$chanel->id, $chanel->name, '') ?&gt;</td>
&lt;?php
$i++;
if($i == 2)
{
echo "</tr>";
$i = 0;
}
}

?&gt;

example url for that url is like this "http://localhost/klik-andri/index.php/channel/index/id/2" and i want to change url like this "http://localhost/klik-andri/channel/controlling "

any suggest for me??
thanks for all..