Behaviors

Sphinx Search Behavior for Cake 2.0+

Published by nabeel on 21/2/12

I've updated the previous CakePHP behavior to work for Cake 2.0, and also optimized it down to one query, versus two

CakePHP Big Data Behavior

Published by jarriett on 18/2/12

An easy way to efficiently insert, update, and work with very large amounts of data using CakePHP and MySQL. The most recent version of the code can be downloaded here.

Formatos de fechas

Published by rikkin on 27/1/12

Hola, soy nuevo en Bakery, les dejo un comportamiento que hice para dar vuelta la fecha, algo así como un dateformat. lo que hace es muy simple, recorre todo un array hasta las values, luego se fija en el modelo de la base de datos si el campo es ...

Dateformatter

Published by rikkin on 27/1/12

Hi!, Im new on the bakery, this is my first article, I hope this will be helpfull. This is a behaviors for dateformat, I was looking for something like this, but I never could get one that indulge my needs. so, here it goes. A simple Dateformat b...

HABTM Add & Delete Behavior for CakePHP 2.0

Published by iandeth on 11/1/12

The easy way to incrementally add|delete an HABTM association records is to use this Behavior, written by Brandon Parise:

Autocache Behavior for automaticly caching model queries

Published by ndejong on 26/11/11

AutocacheBehavior is a CakePHP 2x Behavior that makes query caching as easy as adding a 'cache'=>true condition to your find statement.

Sluggable Behavior for easy permalinks

Published by vduglued on 25/11/11

I put together a CakePHP behaviour for generation of permalinks as a record is saved to the database.

This has been shown to help with search engine optimisation, getting important keywords and phrases into your site URLs.

G...

EAV Behavior

Published by abalonepaul on 11/10/11

[b]Background[/b] As software developers, many projects that we work on require us to store "variable variable data". This means that we may not know exactly what data will be stored in the application during conception, planning, or developmen...

SQL Server StoredProcedure Behaviour

Published by icc97 on 25/9/11

There's more than just $this->query('my_stored_proc_sp'); to calling stored procedures in SQL Server.

Uploadable Behvaior

Published by mdunham918 on 15/9/11

I have a few tables that contain a field that needs to be photo or other type of file that needs to be uploaded. Instead of writing upload stuff for each method I just built a behavior to handle it.

Key/Value storage table behavior built with cakephp-2.0.0 RC1

Published by mdunham918 on 15/9/11

This is a model behavior that will allow you to easily work with tables that are structured to be key/value storage tables.

Automatic Validation Message For Core Validation Rules

Published by rayhan on 24/6/11

Are you tired of setting same validation message for each rules in your models or inside the forms. If so, then my tiny ValidationMessage Behavior will help you to get ride of this boring work. It will attach message to each of...

Multiple Validation Rules

Published by Styles on 18/5/11

I had a few different forms and needed different validation rules for each. For example an administrator could insert any type of data about a client, but a client would be required to insert all their information.

FindBatch Behavior

Published by on 12/3/11

A plugin behavior that provides a way of finding all records in batches rather than all at once, so that you can loop through huge lists of records without running out of memory.

Behavior for Model Inheritance: the missing feature

Published by santino83 on 19/2/11

After searching all around google and backery, reading the few articles that I've found, I've wrote my own class to implement model inheritance in Cakephp. Using Behaviors. I'm going to post only the code for the behavior with a little expla...

Transaction behavior

Published by Jippi on 19/12/10

A little behavior that enables you to use (nested) transactions in 1.2+ with MySQL.

Rangeable Behavior: Find ranged based on a lat/lon field

Published by zeroasterisk on 10/12/10

After some really shoddy implementations of this functionality as components and whatnot, I finally made a clean and simple behavior which you can use naturally as a custom find type, even within paginate(). It will also sort the results for yo...

DBO extension to get keyed results

Published by mbates on 29/11/10

I have often found the need to have the result of a find( 'all' ) keyed to the tables id. I had been doing this in the code with an, often expensive, foreach loop: [code]$keyResults = array(); foreach( $results as $result ) { $keyResults[ $re...

CustomFinds Behavior

Published by Danielpk on 25/9/10

Behavior that enables you to config custom finds at Model in order to use with Model->find();

File Model behavior

Published by thedilab on 25/8/10

File Model behavior is a CakePHP behavior which is able to handle file uploads automatically.

< prev 1 2 3 4 5