create url's |
[eluser]bralens[/eluser]
How can i convert Code: My new post title with weird symbols āčēģīķļž Code: my-new-post-title-with-weird-symbols-acegiklz and what i need to write in .htaccess to get this url? Code: http://example.com/my-new-post-title-with-weird-symbols-acegiklz
[eluser]iConTM[/eluser]
This may work: Code: $title = "What's wrong with CSS?"; http://ellislab.com/codeigniter/user-gui...elper.html
[eluser]bralens[/eluser]
url_title() do not convert characters like āēčīžķ.... it will convert Code: My new post title with weird symbols āčēģīķļž Code: My-new-post-title-with-weird-symbols
[eluser]mddd[/eluser]
If you are using CodeIgniter 2.0 you can use the convert_accented_characters function from the text helper. If you are using 1.7.2, I would suggest extending the url helper to include the functionality from the convert_accented_characters function from 2.0.
[eluser]Clooner[/eluser]
Code: function removeaccents($string)
[eluser]bralens[/eluser]
thanks and haw can i get url without controller and function names in it?
[eluser]Clooner[/eluser]
[quote author="bralens" date="1281463738"]thanks and haw can i get url without controller and function names in it?[/quote] Look up Routes in the manual |
Welcome Guest, Not a member yet? Register Sign In |