2011-09-26 78 views
2

對不起,基本的問題在Cakephp URL中傳遞CamelCase控制器名稱是否好?

我有一個名爲「UserProfiles」的控制器,它包含一個名爲「view」的函數。 但是,當用戶登錄我重定向到該視圖的方法。我使用下面的代碼: 1)$ this-> redirect('/ UserProfiles/view');我有其他選項 2)$ this-> redirect('/ user_profiles/view');

我的輸出:http://www.sample.com/UserProfiles/view或者 http://www.sample.com/user_profiles/view

我懷疑是這是在CakePHP中使用正確的標準,以及這些2的選項會爲搜索引擎友好的URL有幫助嗎?

+0

只是「配置文件」會出現什麼問題? – thomasfedb

+0

我需要知道哪個是cakephp標準通過URL – AnNaMaLaI

回答

相關問題