Exploring CiviCRM extension development using Civix
CiviCRM extensions are agnostic. This means that they will work regardless of what CMS you are using: Drupal, Joomla!, or WordPress. If you have ever explored the contents of your CiviCRM module directory, you'll see there are a bewildering number of directories and files. Many of these files work together. So, if you want to start developing your own CiviCRM extensions, you will need to know how the files work together.
How to do it…
Civix is a command-line tool that helps you develop CiviCRM extensions. In this recipe, we will use a MAMP local development environment available on Mac OS X and install Civix. Then, we will create our own CiviCRM extension and add a page. The recipe can be adapted to other environments.
- Start up your local environment and set up a CiviCRM development site using your CMS of choice. In this recipe, we will use MAMP.
- Check where PHP is running so that you can run PHP from the command line in your local...