プラグインを開発していて、プラグイン ディレクトリに routing.yml があり、sfPropelRoute でルートを指定しています。
私のplugins/myPlugin/config/routing.yml で:
myplugin_test:
url: /myurl/:id
class: sfPropelRoute
options: { model: myClass, type: object, method_for_criteria: selectAvailableObj }
params: { module: mymodule, action: show }
requirements:
sf_method: [GET, POST]
それは正常に動作します。
しかし、私のアプリ ( apps/myapp/config/routing.yml ) では、人間の意味で絶対 URL を定義したいので、次のようなルーティングを行いたいと考えています。
my_profile:
url: /my-super-profile
class: sfRoute
params: { route: @myplugin_test, id: 1 }
明らかに、私の構文は正しいものではありません!