1
我有些樹的網頁,如:如何擴展SilverStripe「系統/內部」路由?
/business
/loans
/personal
/bad-credit
etc.
如何延長內部/框架路線(不創建子頁面),以獲得類似鏈接:
/business/segment
/loans/some-segment
/personal/some-another-segment
/bad-credit/awesome-segment
etc.
事情是這樣的:
---
Name: customroutes
After: framework/routes#coreroutes
---
Director:
rules:
'business/???': 'Custom_Controller'
'loans/???': 'Custom_Controller'
謝謝!但是動態允許的操作呢? –
這個頁面應該有幫助:http://doc.silverstripe.org/framework/en/topics/controller – micmania1