Last Updated: February 25, 2016
·
692
· ujovlado

Generate Yii framework application also with VCS files

Everybody knows that Yii framework has nice command runner (an yiic command).

But, did you notice what was added in version 1.1.11?

WebAppCommand has ability to generate fresh application with git or hg specific files.

It's pretty simple.

Go to protected directory and run yiic command:

path-to-framework/protected$ ./yiic webapp <app-path> [<vcs>]

To all directories which are required will be generated VCS files like .hgkeep or .gitkeep.