Welcome Guest, Not a member yet? Register   Sign In
links problem
#1

[eluser]Richko[/eluser]
I have links with specific letter like "ą", what would be the best way to replace it to "a" and then use to link?
#2

[eluser]JoostV[/eluser]
1. Load the URL helper:
Code:
$this->load->helper('url');

2. Use function
Code:
url_title()
to remove/replace all unwanted characters from strings (also replaces spaces with dashes).

I haven't tested this with "ą", but it replaces characters like ë and é with a regular "e"

EDIT: sorry, doesn't work. Just tested. The function merely removes "ą". You will probably have to write your own preg_replace function.
#3

[eluser]Richko[/eluser]
i tried it removes character
#4

[eluser]JoostV[/eluser]
Yes, it does, I see. I edited my post.




Theme © iAndrew 2016 - Forum software by © MyBB