nacesprin
(Javierleal)
July 25, 2011, 8:21am
1
Hello. I am trying to use Yii Like Documentation Extension:
http://www.yiiframework.com/wiki/186/how-to-generate-yii-like-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.<img src='http://www.yiiframework.com/forum/public/style_emoticons/default/cool.gif' class='bbc_emoticon' alt='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?
JFReyes
(Jose Reyes)
July 26, 2011, 4:29pm
2
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.
arfeen
(Arfeenster)
December 27, 2011, 6:47am
3
Im also getting same problem. I tried what JFReyes suggested but still same, any other thing im missing ?
Thanks
JFReyes:
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.