Adding CakePHP as GIT submodule

Why we should apply this in our development environment ? Because it is easier to update CakePHP library used in your application.

Follow this trail below ,  junior programmer should be able to understand it :

cd /var/www/my_cakephp_application

# First, remove the current cake folder

 
rm -rf cake/
 
mkdir core/

# Now add cakephp as your application submodule

git submodule add  git@github.com:arifsanchez/cakephp.git core/
git submodule init
git submodule update

# Okay, now you should see files in core/ directory.
# Set your application to read cakephp library from new directory.
# Open app/webroot/index.php (try line 53)

if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'core');
}

So every morning, before you start your code writing again, please run

git submodule init
 
git submodule update
Post comment as twitter logo facebook logo
Sort: Newest | Oldest