2015-05-13 39 views
0

我在CakePHP的頁面,看起來像更改URL CakePHP中

www.example.com/posts/next_posts 

即我有app/View/posts/next_posts.ctp

,但我有Categories1這,Categories2,Categories3,....在數據庫。

如何更改URL,這樣我給你的數據庫的一個變量,它看起來像

www.example.com/categories1/next_posts 

www.example.com/categories2/next_posts 

www.example.com/categories3/next_posts 

回答