Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A CakePHP 1.3+ helper for remapping helpers

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 views
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
README.md

Analogue plugin for CakePHP 1.3+

Renames, or "maps", helpers prior to rendering so that you can easily replace helpers with your extended, or updated version.

Installation

  • Download the plugin

    $ cd /path/to/your/app/plugins && git clone git://github.com/joebeeson/analogue.git
    
  • Add the helper to your $helpers and configure it there

    public $helpers = array(
       'Analogue.Analogue' => array(
          array(
           'helper' => 'MyHtml',
           'rename' => 'Html'
          ),array(
           'helper' => 'MyForm',
           'rename' => 'Form'
          )
      )
    );
    

This will take the helpers, MyHtmlHelper and MyFormHelper and remap them to the Html and Form variables when rendering begins.

Something went wrong with that request. Please try again.