yii用户管理安装404错误

yii用户管理安装404错误,yii,Yii,我正在将MAMP pro与yii-1.1.12一起使用。我正在尝试安装最新版本的yii用户管理 我的webapp路线是 /Users/myname/Sites/yii-1.1.12/htdocs 我创建了“模块”文件夹,并将yii用户管理复制到其中: htdocs>受保护>模块 (模块和子文件夹设置为重写) config/main.php 'modules'=>array( 'gii'=>array( 'class'=>'system.gii.Gii

我正在将MAMP pro与yii-1.1.12一起使用。我正在尝试安装最新版本的yii用户管理

我的webapp路线是 /Users/myname/Sites/yii-1.1.12/htdocs

我创建了“模块”文件夹,并将yii用户管理复制到其中:

htdocs>受保护>模块 (模块和子文件夹设置为重写)

config/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...
我严格按照说明进行操作,但是当我在浏览器中调用用户/安装时,我得到一个404错误。

我的页面工作正常(带或不带index.php)


非常令人沮丧。任何帮助都将不胜感激。

我刚刚意识到您的config/main.php有问题

您在模块中列出了模块:

'modules'=>array(
  'gii'=>array(//...gii configuration...),
  'modules' => array(
    'user' => array(
    'debug' => true,
  )
),
应该是:

'modules'=>array(
  'gii'=>array(//...gii configuration...),
  'user' => array(
    'debug' => true,
  )
),

只是好奇,这些是你使用的说明吗?是的,没错,不过我是从3号开始的。因为我已经安装了一个webapp。我从来没有在Yii中使用过这个模块,但是步骤6不是说要在URL中包含数据库的名称吗<代码>http://localhost/testdrive/index.php/user/install,在本例中是testdrive?我相信这只是webapp文件夹。如1和2所示,您是对的,好的,当您浏览/modules/文件夹时,它是什么样子的?它应该是一个包含/user/的文件夹,对吗?用户的文件夹是什么?非常感谢你,你是一个救生员!