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

  • SEARCH
  • Home
  • 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 6995955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:05:45+00:00 2026-05-27T20:05:45+00:00

I want to use Yii document generator, i have extracted the source in protected/commands.

  • 0

I want to use Yii document generator, i have extracted the source in protected/commands.

When I try to run the command:

yiic docs check

it says:

Yii command runner (based on Yii v1.1.8)
Usage: c:\wamp\www\FRAMEW~1\yiic <command-name> [parameters...]

The following commands are available:
 - message
 - migrate
 - shell
 - webapp

To see individual command help, use the following:
   c:\wamp\www\FRAMEW~1\yiic help <command-name>

Do I need to edit any config to run docs command ?

  • 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-05-27T20:05:45+00:00Added an answer on May 27, 2026 at 8:05 pm

    You can add a Command to your CConsoleApplication by adding it to the commandMap.
    add this to your protected/config/console.php:

    'commandMap' => array(
         'docs' => array(
            // alias of the path where you extracted the DocsCommand.php
            'class' => 'application.commands.DocsCommand',
          )
    ),
    

    after that yiic docs will run DocsCommand and it also should appear in the list of available commands.

    You have to do this in your console application config since CWebapplication and CConsoleApplication have many different properties you can set via config. commandMap in this example is a property of CConsoleApplication but not of CWebApplication so you can only define it in console app. Read more about configuration in Yii’s Definitive Guide

    Also if you have a look at the yiic.php in your applications protected path you will see it includes the console.php file:

    <?php
    
    // change the following paths if necessary
    $yiic=dirname(__FILE__).'/../yii/framework/yiic.php';
    $config=dirname(__FILE__).'/config/console.php';
    
    require_once($yiic);
    

    If you have configuration that should be the same for web and console, for example a database connection, you can put that into an own config file e.g. config/db.php and include it in both config/main.php and config/console.php like this:

    'db' => include(dirname(__FILE__). '/db.php'),
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok I have a controller class in Yii that I want to use a
I have started an application in YII, I want to use proper standards of
I'm building a web application and eventually would want to use Yii framework. But
i want use some data from a website with web service. i have a
With Yii php framework, I use inheritance. In my AbstractModel, I have this method:
I have a large project and want to move to the Yii Framework for
I want to extract Microdata values. I use a Yii App runned from the
I want use of switch and case in php and codeigniter library, i try
I am trying to use the yii autocomplete build in widget. I have manage
I want to use cookies & sessions across sub domains. Im strictly using yii

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.