public static function hyphenToUnderscore($string) { return str_replace('-', '_', $string); }
protected static function normalize($request) { if (is_null($request)) { $request = Mapper::parse(); } $request['controller'] = Inflector::hyphenToUnderscore($request['controller']); $request['action'] = Inflector::hyphenToUnderscore($request['action']); return $request; }