> I can add another attribute to the Posts table, "url_title" for
> example, and then, when i add a Post, fill it with the title with
> white spaces string replaced to  '-'.
>
> I was looking for a clean solution to string replace the white spaces,
> directly from $html-link() call.

Felix Geisendörfer wrote a nice article: Title to url slug conversion.
http://www.thinkingphp.org/2006/10/19/title-to-url-slug-conversion/

That should solve your problem.

Regards,
Brain
----------
http://braindead1.de - My german blog


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to