CodeIgniter Forums

Full Version: how to route url?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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..