Helpers Helpers

markItUp! jQuery universal markup editor Helper

By Jay Salvat
markItUp! is a JavaScript plugin built on the jQuery library. It allows you to turn any textarea into a markup editor. Html, Textile, Wiki Syntax, Markdown, BBcode or even your own Markup system can be easily implemented. Find here some helpers to create, remove, switch markItUp! editor in your CakePhp projects.
[Read more]

Open Flash Chart Helper: draw charts the Cake way

By Joaquin Windmuller
Open Flash Chart (http://teethgrinder.co.uk/open-flash-chart/) is a nice solution to drawing charts from data on your applications. This helper makes using Open Flash Chart with CakePHP simple.
[Read more]

Image Magick Resize Helper

By Jean Philippe Doyle
I was looking for a resizing helper and found one which wasn't exactly what I was looking for so I tweaked it a bit.
[Read more]

Gravatar Helper

By bryce
Gravatars are very popular way for users to maintain the same avatar across multiple site using just their email address. This helpful helper makes it even easier to implement Gravatars into your site.
[Read more]

Lorem Ipsum

By Jon Adams

Tired of toggling between your widget, or lipsum.org, or your text file, etc. to pull in placeholder text?

Then this helper is for YOU!

[Read more]

jQuery autocomplete Helper

By Gianluca
I use jQuery becose is fast and concise Javascript library. My helper, jmycake, use jQuery for AJAX autocomplete.
[Read more]

DateHelper for fuzzy date differences

By AG
A semi-useful helper that calculates the difference between two dates and gives it in *slightly* fuzzy logic: "almost 2 years," "over 1 month".
[Read more]

Simple TimerHelper to measure rendering times

By Martin Westin
Working on a project that logs a lot of data I have found it useful to time the rendering-times of certain views, elements and other sections of code. I wrapped this code up info a helper just to have it handy. The same code can easily be put into a Component if it is controller-processing that needs measuring.
[Read more]

Using Security Component and multi Checkboxes

By foxmask
As i did not find the way to do it with the Cake FormHelper i will detail what i did and why.

The helper PcformHelper is usefull when you want to use the Security Component, and need to create an array of checkboxes.
[Read more]

xStandard wysiwyg Helper

By David Coll
Based on the workaround made for fckEditor, I've made a little helper to render easily a wysiwyg editor that IS xHTML 1.1 compliant :)

This helper assumes you are using the prototype.js framework.

xStandard
[Read more]

Automagic JavaScript Validation Helper

By Matt Curry
This helper takes your model validation rules and converts them to JavaScript so they can be applied in the client's browser before submitting to the server.
[Read more]

Prototip Helper

By Andy Leeb
This is a helper for people using prototip. Prototip is available here: http://www.nickstakenburg.com/projects/prototip/files/prototip1.1.0.zip

The provided code was written for the 1.1.x branch of CakePHP. I would imagine that it would easily be updated for 1.2.x
[Read more]

SimpleImg - helper for reducing rows in view

By unigue
When I was playing with images I always messed up with stuff which didn't belongs into view code. Like "if is_file(image" etc. but I want to be sure that there is going to be an image whether wanted or empty-image, so I wrote a following helper to make things easier.
[Read more]

Automatic JavaScript and CSS Packer

By Matt Curry
Another JavaScript/CSS combiner and packer was recently posted to the Bakery. I felt it was a little configuration heavy and required too much manual intervention. This version is much more automated and requires virtually no code changes.
[Read more]

Tree Helper

By Andy Dawson
A helper to generate nested ULs OLs, DIVs or whatever from tree data.

Works best with the TreeBehavior, but not a requirement.
[Read more]

Asset Mapper

By Marc Grabanski
Map your entire web application's asset (JavaScript/CSS) includes with one file!

Easier way to manage JavaScript and CSS includes. Built on top of Asset Packer which compacts files and put them through CSS Tidy and JSMin.
[Read more]

Cake Meet Pie

By Aeron Glemann
A Helper class that integrates EQ Smooth Pie Graph with your Cake application. EQ Smooth Pie Graph generates pie charts with smooth edges, looks great, and it's free - read on.
[Read more]

Smarty View for 1.2

By Michael Houghton
This expands on the Smarty View code from Version 1.1. While its only a beginning, I am hoping someone else will pick up from what we had in version 1.1
[Read more]

Overriding specific HTML tags before using helper methods

By Michael Houghton
CakePHP 1.2 allows you to override CakePHP's defined tags. Yeah, I know, so did CakePHP 1.1, but now you can define your own base helper, from which all CakePHP helpers will inherit, and only override the tags you decide. That's right, no more copying tags.ini.php to modify it. Just define what you need, and how you need it. Let's see how.
[Read more]

Persian Date Helper

By Arash Hemmat
As there is no method for using Persian dates in PHP we had to use some codes to convert the dates. Using this helper you can convert the dates in a view. Use pdate_format() just like date() function in PHP.
[Read more]

JSMin Helper Compress and cache javascript

By Mark Story
JSMinHelper offers an easy to use interface for compressing and caching javascript files, reducing bandwidth and server load.
[Read more]

Breadcrumb Helper

By Anoop M
If you are tired of setting up breadcrumbs for your screens, this helper is for you.
[Read more]

Showing a text excerpt around multiple keywords

By JP Mortiboys
On a typical search results page, you want to display an excerpt of each matching item, showing the keywords. TextHelper::excerpt() works, but only for a single word/phrase. This helper finds the chunk of text containing as many keywords as possible.
[Read more]

Tagcloud Helper

By Suhail
This is an intro on how to create well made tag clouds that are normalized based on relative scores. Feel free to use in your projects.
[Read more]

Social Bookmarklet helper

By Ritesh Agrawal
This helper provides an easy way to add social bookmarklet to your CakePHP based website.
[Read more]

Lightroom Helper

By Julian Phillip Sander
This is a simple helper for people who want to use the lightbox.js
[Read more]

Color Helper (Random)

By Jeff Brown
This is by no means the answer to all your color woes, as it only has one function at this time. But the function can be handy.

Need a way to distinguish one chunk from another? How about easy random background colors that are all within a reasonable range of values that look good with dark text.
[Read more]

Multiple flashes with different classes

By Danny Ferguson
There were a couple of things I didn't like about using $this->Session->setFlash(), so I wrote my own method for saving flashes and helper for displaying them.
[Read more]

CSV Helper (PHP 5)

By Adam
I was recently outputting some comma-delimited data and thought I would benefit from a simple csv helper. I hope this helper benefits someone else as well. This is my first submission so please give any criticism.
[Read more]

$anything_for_layout: Making HTML from the View available to the layout

By Rob Conner
Did you ever have a side navigation that you wanted to change based upon changes in the view? Using this helper, you can write HTML and other output for display in the layout. The output itself is written in the your view and then transfered to the layout.
[Read more]

css list-menu helper

By Florian Kraemer
A helper (method) to create a css formatable list-menu.
[Read more]

Sexy Cake with Krumo: Say Goodbye to print_r()

By Stacy Pawlowich
Debugging nested arrays with print_r() can be wicked tough but Krumo makes this task a little less crack-a-lackin.
[Read more]

NiceHead helper with autoloading of javascript and css

By Kim Biesbjerg
Like cake isn't already doing enough magic...
Here is a helper to make it even better! Injects CSS/JS into the head tag in your layout and autoloads css/js files for you based on current controller and action.
[Read more]

Digg Style Pagination

By Matt Puchlerz
Looking for a fairly simple way to create pagination in a style similar to Digg? Check this out.
[Read more]

JS Vaildator

By Garth Braithwaite
This helper generates JavaScript validation based on the model's validate array, and also offers a few extra features.
These features include:
Server: a Ajax script to validate one field server-side (this was originally designed to make sure a field is unique on the table ie username or email)
Confirm: to check that two or more fields are equal (designed for password fields or to confirm email accounts)
Custom required fields: if you don't want to use strictly the model's validate array or if you want to append a few fields that may not actually appear in the array

Currently the validator uses a JavaScript alert to let user know what changes need to be made, but I am going to make it optional to have the results returned in a div tag of your choice as a unordered list. Until I finish that this will get you started.

Please let me know if this helps anyone, or how I could improve it.
[Read more]

Textile Editor Helper for Cake

By Travis Cline
A port of TEH(Textile Editor Helper) to Cake. See Original here: http://slateinfo.blogs.wvu.edu/plugins/textile_editor_helper
[Read more]

Multiple checkbox

By Amit
Helper method used to create multiple checkboxes.
[Read more]

Excel xls helper

By Cleiton Wasen
Helper to creation of simple xls files.
[Read more]

Pagination Helper for Long Content

By Erich Beyrent
In one of my CMS projects, I ran across a case where the user created a post of very long content that scrolled endlessly down the page. In an effort to make the content more easily readable, I created a Pagination helper that breaks that content into discrete blocks of content with "next" and "prev" links.
[Read more]

Barcode with cake

By Marco Sbragi
How to print barcode with cakephp and pdfb library
[Read more]

Create Multiple Checkboxes Instead of a Multiple-Select in your Views

By Joshua McFarren
From a usablitiy stand point, multiple-select boxes are a nightmare. Forget to hold down the modifier key when adding an option and you loose all your selections. When the number of options are managable, multiple checkboxs are a better choice for average users. This functionality is coming to cake in future versions but you can have it now with this helper.
[Read more]

CSS Menu Helper

By John Reeves
This is a helper and CSS file for displaying a dropdown menu on your site.
[Read more]

jQuery Helper

By Marco Pegoraro
I wrote an helper that allow you to enjoy jQuery library by helping in script inclusion and plugin management.
[Read more]

cakeinfo() helper for cakePHP

By Siegfried Hirsch
As a newbie in cakePHP it is often hard to get all the constants right and not always easy to recognise, what is already defined in the cakePHP core of constants.
[Read more]

Country Select List Helper

By Tane Piper
If you are having users register for your site, especially a customer - you may want to know their country of residence. Instead of having to create a select list and manually enter each country - this handy helper does it for you all.

[Read more]

Image Resize Helper

By Josh Hundley
I am in the process of writing an online store with Cake and needed a helper that would automatically resize images into thumbnails.
[Read more]

Firecake Helper

By zomg
This will repeat messages from the error.log as well as variables, form data, validation errors, session data, and other useful info into the Firebug console window. Other than the normal log usage, you don't have to tell it to trace anything, it'll get the info automagically.
[Read more]

PDF helper using fpdf

By Sam DeVore
How to easily create pdf output from CakePHP using the Freely licenced fpdf library found at http://fpdf.org/
[Read more]

PDF helper using pdf php

By Sam DeVore
This Article is strongly based on the old wiki entry by Ozly all credit goes to him all errors can be attributed to me.

"This class is designed to provide a non-module, non-commercial alternative to dynamically creating PDF documents from within PHP. Obviously this will not be quite as quick as the module alternatives, but it is surprisingly fast, this demonstration page is almost a worst case due to the large number of fonts which are displayed. There are a number of features which can be within a PDF document that it is not at the moment possible to use with this class, but I feel that it is useful enough to be released."
[Read more]

Imagefile Helper

By Blake Binkley
if you don't know if an image you're about to display exists
[Read more]

Google Map Helper

By Abhimanyu Grover
A handy tool to generate maps using Google Map API.
[Read more]

GoogleMapHelper

By Mahmoud Lababidi
Use this helper to add a GoogleMap to your application. For a tutorial on how to use it, check out http://bakery.cakephp.org/articles/view/186.
[Read more]

dAuth v0.3 helper

By Dieter Plaetinck
helper for dAuth v0.3
[Read more]

othAuth helper 0.1.2

By Othman ouahbi
Helper part of othAuth
changes:
0.1.2:
- Fixed another bug in getData ( wasn't calling init())
- Added support for 1.2
- Added a function hasPermission by Brett ODonnell aka cornernote

0.1.1:
- Fixed a bug in getData
- uses the session helper now
[Read more]

How to use SmartyHelpers with SmartyView

By Travis Cline
Direct SmartyView (http://bakery.cakephp.org/articles/view/124) usage in Cake has some limitations, the SmartyHelpers are here to help you out.
[Read more]

Geography Helper

By Mike OToole
The geography helper allows you to easily produce arrays of states and countries for convenient use within the form helper select function, as well as format state names, longitudes, and latitudes.
[Read more]

TextImage Helper

By meek
You want to use a non-standard font for headlines or a navigation on your site, you want to keep them dynamic but you don't want to use Flash - this helper might be for for you.
[Read more]

Textile 2.0.0 helper

By Walker Hamilton
This let's you easily use Textile to process content for your application.

Just drop it in /views/helpers/textile.php, then $textile->process($thedata).

You can also $textile->processRestricted($thedata) if input is coming from an unreliable source.
[Read more]

TranslationHelper

By Kjell Bublitz
This uses the HTTP_ACCEPT_LANGUAGE to determine the current users most accepted language. It takes the the first one of all accepted, then looks up the available translations and delivers. If all fails, or no good translation was found, it returns the default string.
[Read more]

Pagination Helper

By Andy Dawson
The pagination helper, for instruction on use see: http://bakery.cakephp.org/articles/view/65
[Read more]

SeleniumHelper

By Daniel Hofstetter
A helper to make writing Selenium tests easier. See http://www.openqa.org/selenium-core/
[Read more]

Behaviour.js Helper

By Kjell Bublitz
Helps you using the Behaviour Javacript in your App. Behaviour can be used to attach Javascript to Elements. With this you can easily avoid using inline-Javascript.
[Read more]

Tree Helper

By James Hall
A helper to format the output from findAllThreaded() into a HTML list.
[Read more]

Dojo Helper

By Christian Trummer
A Dojo Helper class for some Widgets but mainly for AJAX support like you know it from the AJAX Helper!
[Read more]