Difference between #4 and #3 of how to use github (un)official extension repo in your Yii project

how to use github official(un)official extension repo in
your Yii project
github git extensions
Using a git submodule command in your yii project

ImI'm developing a web project for a company
with yiiusing Yii framework. We are using a git
vcs in our development process. 
We like to use yiiYii extensions. But only if they
are good. 

We are very carefully chossing an extension, if we need
something.extension very carefully. If we don't like an
extensionits code or something else, wedon'twe
don't use that extension.it. And last time someone
noticed, that we are using only extensions from
[official[(un)official github yii extensions
repo](https://github.com/yiiext) . But we still need a solution how to use that
repositoires independently from our project ?

git submodule add https://github.com/yiiext/with-related-behavior

This command will add an extension repository under our project extension
folder. And any other extension from github
official(un)official yii extension repo you can add to
your project git repo easy. 
Then when another coder cloned your repo his extension folders will be empty. He
needs to type 
git submodule update --init --recursive
And then extensions will appear in his repo too. 

very nice feature. You can read more about it on

Write new article
  • Written by: RusAlex
  • Category: Tips
  • Yii Version: 1.1
  • Votes: +4
  • Viewed: 7,831 times
  • Created on: Sep 29, 2011
  • Last updated: Oct 2, 2011
  • Tags: github git extensions