Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8543235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:15:15+00:00 2026-06-11T12:15:15+00:00

Trying to access locally http://mysite.dev/gii but I’m getting: Gii Unable to resolve the request

  • 0

Trying to access locally http://mysite.dev/gii but I’m getting:

Gii Unable to resolve the request “gii/index”

Here is my config/localdev.php file:

'modules'=>array(
  // uncomment the following to enable the Gii tool
  'gii'=>array(
     'class'=>'system.gii.GiiModule',
      'password'=>false,
      // If removed, Gii defaults to localhost only.
      'ipFilters'=>array('127.0.0.1','::1'),
),

If I use this address:

http://mysite.dev/gii/default/login

But this a password protect one, and we defined as false.
We may think that localdev.php is NOT being applied, but I’ve echo “hello” inside the conditional that loads it, and it appeared”.

Note:
Inside Yii framework there is a .htaccess file with:

deny from all

I don’t see the reason for this behavior.

Can I have your help please ?

Update regarding the comments:

Here’s the localdev.php requiring main.php

return CMap::mergeArray(
        require_once(dirname(__FILE__).'/main.php'),
        array(
            'modules'=>array(
          'gii'=>array(
              'class'=>'system.gii.GiiModule',
              'password'=>false,
              'ipFilters'=>array('127.0.0.1','::1'),
        ),
         ),

Here’s the URL on main.php

'components'=>array(
    'urlManager'=>array(
      'urlFormat'=>'path',
      'rules'=>array(
        '<controller:\w+>/<id:\d+>'=>'<controller>/view',
        '<controller:\w+>'=>'<controller>/index',
        '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
        '<controller:\w+>/<action:\w+>'=>'<controller>/<action>'
       ),
      'showScriptName'=>false,
     ),

IF we should add those:

'rules'=>array(
  'gii'=>'gii',
  'gii/<controller:\w+>'=>'gii/<controller>',
  'gii/<controller:\w+>/<action:\w+>'=>'gii/<controller>/<action>',

Should I add this and place all that it’s on main.php rules OR, can we precisely add just those rules here on localdev.php ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:15:16+00:00Added an answer on June 11, 2026 at 12:15 pm

    You should add the routes that service Gii to your app configuration as mentioned in the manual.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to access the Reporting Services 2005 Report Manager locally on a Windows
When trying to access the database, I am unable to access the column. I
I'm trying to download a file from the web and save it locally, but
I am trying to add OAuth athentication with to access YouTube, but how do
I have a JSON file here: http://dalexl.webs.com/products.json I'm trying to read it on my
I am trying to access my exchange mailbox via WebDav. Locally I used the
I am trying to learn node.js, but I'm having trouble getting the simple server
I am trying to access a database through a simple PHP code. But the
Trying to access a Servlet from a button on HTML page //Html Page FORM
Im trying to access the Magento customer session in another part of my website.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.