Rewrite string with spaces to "url" string with -

attemis

Member
Hey,
i want to rewrite a string (from the database) to use it in a url like this:
Code:
route/string-from-database.2/
At the moment the url looks like this:
Code:
route/string from database.2/
I searched already in XenForo_ControllerPublic_Thread and in XenForo_Route_Prefix_Threads, but i cant finde the piece of code which does this :(

Can someone give me a hint? :)

Thank you
attemis
 
Ah, sorry, I see it now. You should be using XenForo_Link for the route and it pulls out the necessary ID and string based on the route prefix definitions.
 
Back
Top Bottom