Skip to content

Instantly share code, notes, and snippets.

@rodrigorm
Created February 12, 2010 13:31
Show Gist options
  • Save rodrigorm/302552 to your computer and use it in GitHub Desktop.
Save rodrigorm/302552 to your computer and use it in GitHub Desktop.
class AppInflector extends Inflector {
function slug($string, $replacement = '_') {
$map = array(
'ã' => 'a',
'õ' => 'o'
);
$string = str_replace(array_keys($map), array_values($map), $string);
return Inflector::slug($string, $replacement);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment