Changes between Version 40 and Version 41 of S3/S3REST/s3_rest_controller


Ignore:
Timestamp:
10/24/10 07:18:39 (14 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3REST/s3_rest_controller

    v40 v41  
    207207s3_rest_controller() modifies this schema in order to allow you to create method-specific views for the same controller.
    208208=== Default View ===
     209
     210The default view is chosen in a fallback cascade, which is:
     211
     212  1. <prefix>/<resource-name>_<component-name>_<method>.html
     213  2. <prefix>/<resource-name>_<method>.html
     214  3. <prefix>/<method>.html
     215  4. <method>.html
     216
     217where:
     218
     219  - '''prefix''' is the application prefix of the resource name (e.g. "pr")
     220  - '''resource-name''' is the name of the resource (e.g. "person")
     221  - '''component-name''' is the name of the component resource (e.g. "address", only if the request targets a component resource)
     222  - '''method''' is one of:
     223    - display
     224    - list
     225    - list_create (to be deprecated)
     226    - create
     227    - update
     228    - delete
     229    - search
     230
     231Example:
     232
     233{{{
     234http://localhost:8000/eden/pr/person/create.html
     235}}}
     236
     237is looking for one of '''pr/person_create.html'', '''pr/create.html'' or finally ''create.html'' as default view.
     238
     239If none of these is found, "default.html" serves as catch-all fallback.
    209240=== Custom View ===
    210241