php


Error in Gii Code Generator Page


Im trying to access my Yii code generator which is Gii.
but when i browse it using
http://localhost/mysite/gii/index/
the page says
Error 404
Unable to resolve the request "gii/index".
this is my .htaccess file for url-rewriting
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
and this is my url manager in my config file
'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'),
),
),
did i went wrong on something?
the http://localhost/mysite/gii/index/ shows the layout of the gii code generator but showing the Error 404...
thanks
P.S.
I tried also to turn off my URL manager and see if my Gii code generator page will work by default by using this url http://localhost/mysite/index.php?r=gii/default/login
and it works...
If you encounter the same problem with the same configuration I did use this URL
http://localhost/mysite/gii/default/login
^_^
use this .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
and try your URL:
http://localhost/mysite/gii/index/

Related Links

How to backup magento to another installation
matching the individual words from array
How can I call a static method from a class if all I have is a string of the class name?
setcookie does not work
What are the advantages to putting your Javascript in a .php file?
MySQL - ignore insert error: duplicate entry
Updating web app from Zend Framework 1.7 to 1.8
Zend Framework cookie management
What does fetch in php do?
UTF-8 & IsAlpha() in PHP
Empty files generated from running `mysqldump` using PHP
Is what seems like polymorphism in PHP really polymorphism?
Is it possible using PHP to backup SQL without dependecies? If not, which is the best?
Need abbreviation translation database
PHP Get the last insert id from ODBC connection
Is it possible to use a WordPress session to authenticate to a CakePHP application?

Categories

HOME
visual-studio
macos-sierra
swi-prolog
hid
biztalk
greasemonkey
swift2
azure-data-lake
implicit-conversion
video-streaming
haxe
graphql-js
static-analysis
tfs2010
driver
fbloginview
phpstorm-2017.1
clish
buffer
stimulsoft
google-tasks-api
rpmbuild
checkout
bluemix-mobile-services
azure-machine-learning
hdl
ava
prompt
openbravo
ruby-daemons
react-bootstrap-table
bobo-browse.net
region
social-networking
universal
caesar-cipher
gsp
mongoengine
spring-rabbitmq
dreamfactory
ms-dos
variable-variables
telephonymanager
uiautomatorviewer
openstack-glance
predicates
perl-data-structures
e
p6spy
mathml
android-async-http
swiffy
distributed-cache
diawi
extend
bootstrap-wysiwyg
kotlin-android-extensions
r.java-file
uno
smacss
jquery-mobile-flipswitch
visual-c++-2012
zend-search-lucene
miglayout
bittorrent-sync
assetic
progress-db
delphi-xe4
dojo-1.9
system-requirements
audiotoolbox
clrprofiler
clearinterval
memory-pool
microblogging
azure-acs
digiflow
qcar-sdk
hungarian-notation
multiple-users
ccnet-config
aggregator
dm
3270
projectpier
efs
activex-exe
remote-working

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App