Last Updated: February 25, 2016
·
919
· 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.

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

PHP applications still send a browser full of JavaScript. Hardening the server does not inventory the payment, analytics, and plugin scripts that run after the HTML is delivered.

Security insights from Cside