Php Gii代码生成器页面中出现错误
我正在尝试访问我的Yii代码生成器,它是Gii。 但是当我使用 页面上写着 错误404 无法解析请求“gii/索引” 这是用于url重写的.htaccess文件Php Gii代码生成器页面中出现错误,php,yii,gii,yii-routing,Php,Yii,Gii,Yii Routing,我正在尝试访问我的Yii代码生成器,它是Gii。 但是当我使用 页面上写着 错误404 无法解析请求“gii/索引” 这是用于url重写的.htaccess文件 Options +FollowSymLinks IndexIgnore */* RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php 这是我配置文件中的url
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
这是我配置文件中的url管理器
'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
//pages
'<view>'=>array('site/page'),
),
),
'urlManager'=>数组(
“urlFormat'=>“路径”,
'规则'=>数组(
“/”=>“/视图”,
“/显示gii代码生成器的布局,但显示错误404
谢谢
附言。
我还试着关闭我的URL管理器,看看我的Gii代码生成器页面在默认情况下是否可以使用这个URL
如果您在我使用此URL的相同配置中遇到相同的问题,那么它会工作…
^_^如果您在使用相同配置时遇到相同问题,我会使用此URL
^_^使用此。htaccess:
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php
并尝试您的URL:
http://localhost/mysite/gii/index/
使用此.htaccess:
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php
并尝试您的URL:
http://localhost/mysite/gii/index/
你不需要索引/在结尾…应该工作你不需要索引/在结尾…应该工作