Skip to content

Instantly share code, notes, and snippets.

@gido
Created Apr 28, 2009
Embed
What would you like to do?
>> 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