Skip to content

Instantly share code, notes, and snippets.

@gido
Created April 28, 2009 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gido/103123 to your computer and use it in GitHub Desktop.
Save gido/103123 to your computer and use it in GitHub Desktop.
>> app Route "language_edit" for application "backend"
Name language_edit
Pattern /language/:id/edit.:sf_format
Class sfPropelRoute
Defaults action: 'edit'
module: 'language'
sf_format: 'html'
Requirements id: '\\d+'
sf_format: '[^/\\.]+'
sf_method: 'get'
Options context: array ()
debug: false
extra_parameters_as_query_string: true
generate_shortest_url: true
load_configuration: false
logging: false
method: NULL
model: 'LanguagePeer'
object_model: 'Language'
segment_separators: array (0 => '/',1 => '.',)
segment_separators_regex: '(?:/|\\.)'
suffix: ''
text_regex: '.+?'
type: 'object'
variable_content_regex: '[^/\\.]+'
variable_prefix_regex: '(?:\\:)'
variable_prefixes: array (0 => ':',)
variable_regex: '[\\w\\d_]+'
Regex #^
/language
/(?P<id>\d+)
/edit
(?:\.(?P<sf_format>[^/\.]+)
)?
$#x
Tokens separator array (0 => '/',1 => NULL,)
text array (0 => 'language',1 => NULL,)
separator array (0 => '/',1 => NULL,)
variable array (0 => ':id',1 => 'id',)
separator array (0 => '/',1 => NULL,)
text array (0 => 'edit',1 => NULL,)
separator array (0 => '.',1 => NULL,)
variable array (0 => ':sf_format',1 => 'sf_format',)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment