yii-url-manager

    1熱度

    1回答

    我想驗證用戶,當他點擊隨機生成的URL。 給我這兩個過程的解決方案。 1.什麼是URL管理器配置規則從URL請求獲取散列(字符串和數字)? 2.如何將URL中的散列值與控制器/操作中的數據庫中的散列值進行比較? 代碼發送電子郵件(它的正常工作) protected function afterSave() { $activation_url = Yii::app()->createAbsolu

    6熱度

    3回答

    我需要一個規則爲http://example.com/post/view/id/1網址,將顯示像這樣http://example.com/post/post_title。 而不是我想顯示帖子名稱或標題的ID號碼。 我的配置是這樣的: 'urlManager'=>array( 'urlFormat'=>'path', 'rules'=>array( //'<

    2熱度

    1回答

    當使用英語以下網址應適用: http://example.org/services/myservice/ 當使用另一種語言,下面的網址應適用: http://example.org/sirvici/misirvice/ 任何簡單/標準,我們應該處理這個問題的方式與Yii?