To question #1: Graham Bird has on his site a little tutorial that introduces "slugs" or (clean titles for the url) to your cake app:
http://grahambird.co.uk/cake/tutorials/slugs.php He doesnt cover how those are created though. I have put my slug() function into the AppModel (cake/app/app_model.php) so that it is available in every model. It transforms German umlaute into their non-umlaut counterparts - maybe you'd like to add more rules. function slug($string) { $slug = strtolower($string); $umlaute = array("ä", "Ä", "ü", "Ü", "ö", "Ö", "ß"); $replace = array("ae", "ae", "ue", "ue", "oe", "oe", "ss"); $slug = str_replace($umlaute, $replace, $slug); $slug = preg_replace("/\W/", "", $slug); return $slug; } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
