url_title - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: url_title (/showthread.php?tid=16958) |
url_title - El Forum - 03-21-2009 [eluser]gafro[/eluser] Hey Guys, Can someone explain briefly the usage of url_title. how do i go about changing a url? I know u pass in a string to the url_title function and it does all sorts of nice magical things. But how do I set the physical URL? Cheers Gafro url_title - El Forum - 03-21-2009 [eluser]Johan André[/eluser] What do you mean exactly? The url_title() converts a string to an url-friendly format: "My nice article" becomes "my-nice-article". The "physical" url is set by an anchor, sometimes like this: Code: <a href="<?=site_url('controller/method');?>">A link</a> You can do a redirect in a controller too: Code: <?php url_title - El Forum - 03-22-2009 [eluser]gafro[/eluser] ... i wrote a post clarify what I was wanting. But I've figured it out while trying to clarify. lol Thanks for replying btw: nice macs url_title - El Forum - 03-23-2009 [eluser]Johan André[/eluser] [quote author="gafro" date="1237760752"] btw: nice macs[/quote] Hehe! They sure are! |