Yii Framework Forum: How to use YIIC while generating yii like documentation? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to use YIIC while generating yii like documentation? Rate Topic: -----

#1 User is offline   Nacesprin 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 72
  • Joined: 04-April 10
  • Location:San Fernando - Cadiz - Spain

Posted 25 July 2011 - 03:21 AM

Hello. I am trying to use Yii Like Documentation Extension:
http://www.yiiframew...-documentation/
... but I am not able to get started with that.

After I extract command folder in /path/to/public_html/protected/commands/ , I later use:

"./yiic docs /path/to/public_html/docs/" or "./yiic docs check", I get this message:

/path/to/yii-1.1.8.r3324/framework/yiic docs /path/to/public_html/docs/
Yii command runner (based on Yii v1.1.8)
Usage: /path/to/yii-1.1.8.r3324/framework/yiic <command-name> [parameters...]

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


Where is the problem? What I'm doing wrong?
0

#2 User is offline   JFReyes 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 508
  • Joined: 28-October 09
  • Location:Puerto Rico

Posted 26 July 2011 - 11:29 AM

Nacesprin:

First of all, you should extract the contents (not the folder itself) of the commands folder to protected/commands; it should look like:

protected/commands
protected/commands/docs
protected/commands/shell
protected/commands/DocsCommand.php


I placed the docs folder (which must exist) at the same level as protected (under public_html), but you must run yiic under protected, so the command line is as documented:

[protected]# ./yiic docs ../docs

Check for these details and if the problem persists please post more information. Good luck.
José
0

#3 User is offline   arfeen 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 22
  • Joined: 18-November 11

Posted 27 December 2011 - 01:47 AM

Im also getting same problem. I tried what JFReyes suggested but still same, any other thing im missing ?

Thanks

View PostJFReyes, on 26 July 2011 - 11:29 AM, said:

Nacesprin:

First of all, you should extract the contents (not the folder itself) of the commands folder to protected/commands; it should look like:

protected/commands
protected/commands/docs
protected/commands/shell
protected/commands/DocsCommand.php


I placed the docs folder (which must exist) at the same level as protected (under public_html), but you must run yiic under protected, so the command line is as documented:

[protected]# ./yiic docs ../docs

Check for these details and if the problem persists please post more information. Good luck.

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users