私はそのような構造を持っています:
- example.com / MyController / index / MyGoodPage / maximum/
- example.com / MyController / index / MyBestPage /optimized/
- example.com / MyController / index / MyFancyPage / 低価格/
しかし、訪問者に「インデックス」という言葉を見せたくありません。それ以上の情報を提供するものではないからです。次のような URL が必要です。
- example.com / MyController / MyGoodPage / maximum/
- example.com / MyController / MyBestPage / 最適/
- example.com / MyController / MyFancyPage / 低価格/
しかし、これをデフォルトの Cake-way で行うには、状況を処理するために何百ものアクションを個別に作成する必要があります。すべてのアクションを作成したくありません。1 つのアクションを作成してから、関連するコンテンツを表示する必要がありますrequest->params['pass']
。
出来ますか?