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

Is there a performance benefit single quote vs double quote in php? [duplicate]
Using __call with static classes?
PHP based form validation helpers?
Drag and drop image into a web form
Form isn't shown
PHP way to execute SQL LIKE matching without a database query?
Data Mapper + Observer pattern
JQuery Ajax Post - JSON works with GET but NOT with POST
HTML data entry
Codeigniter - PHP Not Being Rendered In Views w/ mod_php 5
Security in PHP
Assign 10-digit char user ids to 1 of 1000 servers
Calculate possible combinations of an array in order of presented arrays
Is putting a php script in the src of the image tag slower than normal and by how much?
What is the best way to persist PHP application setings?
How to check if an email address exists without sending an email?

Categories

HOME
amazon-web-services
webview
events
android-espresso
weblogic12c
focus
long-integer
applescript
operating-system
informatica
jersey-2.0
amp
cocotb
jpa-criteria
yeoman-generator-angular
watch-os-3
game-maker
tiff
cname
buffer
pushdown-automaton
dhcp
reselect
maven-plugin
office-ui-fabric
renderscript
parceler
jitsi
software-packaging
webviewclient
location-services
kendo-listview
cloveretl
custom-keyboard
express-session
cordys-opentext
django-crispy-forms
google-prediction
dbcc
sendinput
android-webservice
webvtt
sequence-diagram
nivo-slider
wikimapia
glimpse
network-protocols
polymaps
degrees
yargs
portal
logical
zynq
ftp-client
xcode8-beta4
right-to-left
adp
noclassdeffounderror
odp.net-managed
gravatar
wif4.5
webgrind
deeplink
cryptojs
ibm-was
arbre
nette
calcite
pythonxy
espresso
supersocket.net
componentart
tree-structure
deque
mod-auth-openidc
jcheckbox
device-admin
jquery-mobile-flipswitch
treeline
android-2.3-gingerbread
windows-messages
redpitaya
hyperloglog
commenting
roxy-fileman
mod-perl
lsa
cloo
xsd2code
mute
node.js-stream
html-frames
jquery-cycle
2d-vector
jquery-dialog
flymake
prototypal-inheritance
n-queens
kernel32
directshow.net
simile
solandra
uninstaller
odac
tabbarcontroller
self-tracking-entities
zend-test
browser-based
dm
processors
service-factory
account-management

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