Skip to content
tenebrousedge edited this page Dec 26, 2012 · 4 revisions

Welcome to the Copula wiki!

Introduction by way of Disclaimer:

This is unfortunately not a drop-in, set-it-and-forget-it plugin. This is a way to integrate remote API features into your CakePHP application with a minimum of effort.

As with most plugins, it is not intended for users to edit the plugin code or configuration directly. Functionality changes should be implemented in your code. One design goal with this project has been to make such changes easy.

This document does not address all possible configurations, only the most common scenarios.

This code is provided ‘as-is’ with no warranty express or implied. Use at your own risk.

##Integration Guide

  1. Config

    1. Bootstrap
    2. Database Config
      1. Api Datasource
      2. Token Datasource
    3. Paths
    4. Routes
  2. The Controller Layer

    1. Component Functions
  3. The Model Layer

    1. Using APIs in Your Model
  4. The Datasource Layer

    1. Extending the Datasource
      1. Refreshing Expired Tokens
      2. Last Minute Changes
  5. Further Integration