git Articles & Posts

Enable CSV Import for all controllers/models in a CakePHP 2.x project

CakePHP LogoI often use phpMyAdmin to import csv data into projects I am building, this can be tedious as phpMyAdmin requires the number of fields and field order to match exactly for the csv import to work.

This frustration prompted me to explore the (continue reading…)

Keywords:

  • cakephp csv import
  • cakephp import csv

Installing CakePHP 2.1 with git clone

If you have ssh shell access to you web server installing CakePHP very simple using git.
First, determine if you have git installed. (continue reading…)

Keywords:

  • git cakephp

CakeCore

cakecore is a command line tool and convention for installing/updating the CakePHP core libraries in /usr/lib/cakephp. Using cakecore provides a foundation for maintaining one core, for many apps. The advantages are…

  • One copy of each major version of the CakePHP core libraries.
  • Easy upgrade when new CakePHP version are released.
  • Switch to newer version of CakePHP on a per project basis.
  • Reduce disk space required for each project.
  • Decoupling the core libraries means less to commit and maintain in code repositories.

Installing CakeCore

# clone cakecore from github
sudo git clone https://github.com/pronique/cakecore.git /usr/lib/cakephp

# add cakecore to your path
sudo ln -s /usr/lib/cakephp/cakecore /usr/bin/cakecore

Checkout and install CakePHP

sudo cakecore install-all
# Installs a copy of each major version of CakePHP in...
# /usr/lib/cakephp/1.2/
# /usr/lib/cakephp/1.3/
# /usr/lib/cakephp/2.0/
# /usr/lib/cakephp/2.1/

Updating CakePHP

sudo cakecore update-all

Check current CakePHP versions

sudo cakecore status

Show instructions for linking to the core libraries from your app/project

cakecore paths

CakeCore is open source software released under the MIT License. CakeCore is developed and maintained by PRONIQUE Software, a PHP Software Development Company.

Visit the CakeCore Project on github


Install and reuse CakePHP across multiple projects

Update: I have created a command line tool that provides the functionality explained in detail below. Check-out CakeCore and learn more.

How to maintain one copy of each major version of the CakePHP Core library. Making upgrades to new versions of the framework effortless even across many applications.

I use CakePHP for the majority of web-based applications I create. Before developing this convention I would end up with many redundant copies of the Core library floating around taking up disk space, and making upgrade tedious. (continue reading…)

Keywords:

  • cakephp multiple apps

Copyright © 1996-2012 PRONIQUE Software. All rights reserved.