url_for() 함수에 매개 변수를 추가하는 방법은 무엇입니까?symfony : url_for에 대한 질문입니다.
category_set_representative_image:
url: /categoria-settare-immaggine-rappresentativa/:id
param: { module: category_new, action: setRepresentativeImage }
class: sfPropelRoute
options: { model: Category, type: object }
내가 url_for('category_set_representative_image', $category)
를 통해 URL을 생성 할,하지만 어떻게 매개 변수 외에 추가 ": ID가"(부문 대표 할 이미지의 id) 나는이 길을 의미? 당신이 앞에 @를 사용해야합니다 경로에 대한
url_for('category_set_representative_image?id=YOURIDHERE', $category);