我正在使用yii-1.1.12的MAMP pro。我正在嘗試安裝最新版本的yii-user-management。yii-user-management安裝404錯誤
我對Web應用程序的路線是 /Users/myname/Sites/yii-1.1.12/htdocs
我創建的「模塊」文件夾,複製警予用戶管理到其中:
的htdocs>保護>模塊 (模塊和子文件夾設置爲重寫)
配置/ main.php
'modules'=>array(
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'password',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
),
'modules' => array(
'user' => array(
'debug' => true,
)
),
),
'components'=>array(
'user'=>array(
// enable cookie-based authentication
'class' => 'application.modules.user.components.YumWebUser',
'allowAutoLogin'=>true,
'loginUrl' => array('//user/user/login'),
),
'import'=>array(
'application.modules.user.models.*',
),
etc...
我有FO發出了這封信的說明,但是當我在瀏覽器中調用用戶/安裝時,我收到了404錯誤。 http://yii.dev:8888/index.php/user/install
我的頁面工作好http://yii.dev:8888/index.php/login(有或沒有的index.php)
非常沮喪。任何幫助,將不勝感激。
剛好奇,這些是你正在使用的說明嗎? http://www.yiiframework.com/wiki/68/installing-and-configuring-the-yii-user-management-module-under-a-fresh-skeleton-application-generated-by-yiic/ – ews2001
是的,這是正確的,儘管我從No 3開始,因爲我已經安裝了webapp。 – martyn
我從來沒有在Yii中使用這個模塊,但不是第6步說要在URL中包含數據庫的名稱? 'http:// localhost/testdrive/index.php/user/install',在這種情況下testdrive? – ews2001