Models

Force saving with know primary key

Published by on 26/3/12

At first, sorry for my bad english but i'm italian.
i'm writing this article for illustrate how to force a save instead update when we insert in the save fields the model's primary key value.
this workaround use the beforeSave ca...

Make salesforce objects more cake like

Published by mbates on 30/11/10

I've just started to use the salesforce datasource created by [url=http://bakery.cakephp.org/articles/cwestonr/2010/01/26/example-datasource-for-salesforce-enterprise-1]cwestonr[/url] and have created a method to make the results more cake like

Google Weather API Datasource

Published by anachronist on 28/11/10

This Datasource delivers the weather forecast based on zip and country using the google weather api

GeoIP Data Source Collection - Maxmind, WIPmania, Ipinfodb - many geoip providers for you to choose from!

Published by dereklio on 7/9/10

Recently, I did a lot of projects about geo-targeting websites, and most of my projects are cakephp-based. So it makes sense for me digging into the bakery trying to find out if there is any existing codes that I can reuse, and I found this ([url]...

Twitter model plus plus (for the Twitter DataSource)

Published by rynop on 29/8/10

I've added a few helpful functions to the Twitter model for the Twitter DataSource example in the 1.3 CakePHP Cookbook. Specifically, the auto detection and shrinking of URLs in a string intended for Twitter.

UPS & FedEx DataSource

Published by kylerobinsonyoung on 23/8/10

A UPS datasource and a FedEx datasource for retrieving shipping rate estimates.

Optimizing Model loading with LazyModel

Published by Frank on 10/8/10

If you are running PHP5, this is what you need. This LazyModel optimizes the loading of the models. It limits the number of loaded models to only the ones that are actually used. When using this, you can improve speed and decrease memory usage sig...

Habtm Validatable Behavior

Published by nachopitt on 1/7/10

A behavior to validate HABTM input fields (multi select or checkbox) and save at the same time with just one instruction.

Twilio Datasource

Published by aaroninfidel on 7/6/10

This is a basic Twilio Datasource for reading/creating text messages.

Microsoft Windows Azure Tables Datasource

Published by Howard on 2/2/10

An easy to use Datasource for Microsoft Windows Azure Tables. Azure Tables is capable of storing an infinite amount of data with it's design structure.

Example Datasource for Salesforce Enterprise

Published by cwestonr on 26/1/10

I have been looking for a datasource for Sales force for some time and Never found one so I constructed a Salesforce example Datasource for Query/Login/delete/update/upsert(CRUD like) for the Salesforce Enterprise API. It could be extended with a ...

Simple way to memcache (almost) all database queries

Published by Molot on 8/1/10

Most common way to access data is a database. Most common way to speed this up - Memcached. As a quite young CakePHP developer I had a bit of headache "how to cache queries effectively?". Now I know the way, so I share. Feel free to disagree, upg...

Ticket Model for CakePHP

Published by Firecreek on 5/1/10

This model will create a simple one-off ticket which can be used for user password resetting to activation and moderation. With an activate account example you might send a url like http://domain.tld/users/activate/6d9c79a15255

LDAP data source with full CRUD support

Published by analogrithems on 8/11/09

When I first started, I realized that CakePHP didn't have an LDAP data source officially supported yet. I did find two articles about some good attempts. One by

CSV Reader Model

Published by CakePOWER on 25/9/09

This morning I have had to access some csv files and I went into panic: I found some helpers to create but nothing to read! So I created this simple model to read CSV files.

Get Twitter RSS Feeds with CakePHP

Published by Firecreek on 8/7/09

Using CakePHP model get your RSS twitter feeds with caching and limits.

FMCakeMix: A Full Read/Write Datasource for FileMaker

Published by alexg on 12/6/09

Use a FileMaker database as a full read/write datasource with support for relationships and more...

Vimeo Datasource

Published by pointlessjon on 8/5/09

Vimeo is the most awesomest video site and filmmaker community on the internets. Utilizing Vimeo data and content with your favorite CakePHP Framework based web application just got a little easier...

Geocode location with CakePHP

Published by Firecreek on 24/1/09

Locate postcodes and addresses with this CakePHP model.

A CakePHP ADODB data source driver for MS Access

Published by aspeakman on 29/12/08

This is an ADODB data source driver to connect to an MS Access 2003 database. It has been tested for simple read operations, but not for write/update.

< prev 1 2