Hello.

I use symfony 1.4.

A want to make a dynamic length route.

There's a list. This list has different templates. There is ordering
option and direction for ordering.

Is it possilbe to make url like this (is one routing rule)?

task_index:
  url:     /activity/:id/tasks/:type/:order/:desc
  class:   sfDoctrineRoute
  options: { model: Activity, type: object }
  param:   { module: task, action: index, type: List, order: ~, desc:
~ }
  requirements:
    id: \d+
    sf_method: [get]
    type: ( List| Details | Calendar  )
    order: ( Title | Label | time | Assign )
    desc: (  asc | desc )

This rule works when I use url_for('task_index', array( ..... )).

I want to define different length like:
mysite.com/activity/1/tasks
mysite.com/activity/1/tasks/Details
mysite.com/activity/1/tasks/Details/Label/
mysite.com/activity/1/tasks/Details/Label/desc


is it possible?

Thanks the answers!

Vikos

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to