Skip to content

The Bakery, Everything CakePHP
Syndicate content
Recent Articles at The Bakery.
Updated: 1 hour 49 min ago

CakePHP 1.3.3 rainbow icing edition released

Sun, 07/18/2010 - 22:59
The CakePHP development team is happy to announce the release of CakePHP 1.3.3[1]. 1.3.3 is a maintenance release for the 1.3 branch and contains bugfixes and optimizations for features found in 1.3.
Categories: Open Source

Sphinx component and behavior

Sat, 07/10/2010 - 01:10
I have made a "branch" of the sphinx behavior ( http://bakery.cakephp.org/articles/view/sphinx-behavior ), and make a component and a behavior that uses this component. I have also add more features like the geosearch filter. Motivation: i have a many to many relation, lets imagine that i have a product with a bunch of many to many relation, example; a product that is of various categories and have states(used,new,etc) and is for (sell,rent,etc) and could be in many provinces and could be pay in varios ways (paypal, visa, etc). And i wanna get the provinces of the products who are for rent and new, this is a complex and slow query with a lot of inners joins that could be transform really rapid think using sphinx, for that we need to work the all the results of the SphinxApi::RunQuery
Categories: Open Source

Paginating Data with CakePHP, Dojo Data Store and DataGrid

Sat, 07/10/2010 - 01:09
The aim is pull data from your database through JSON and REST-like services from CakePHP. I have used CakePHP 1.3.2 and Dojo Toolkit 1.4.2.
Categories: Open Source

Autotest using Watchr getting notified via Growl

Fri, 07/09/2010 - 23:45
I was taking a look at ZenTest a while ago, especially the autotest functionality. As stated in the ZenTest site, autotest: Improves feedback by running tests continuously. Continually runs tests based on files you’ve changed. Get feedback as soon as you save. Keeps you in your editor allowing you to get stuff done faster. To add more bang to your buck, you can get continuous notifications from growl every time you save a file, alerting you if any of your previous test cases have failed. Googling around I wanted to see if this can be tied into testing with CakePHP. If I did a horrible job googling and there is already something out there that mimics this functionality please send me a link. Anyways, I stumbled across Watchr. Watchr is a tool that monitors a directory tree, and triggers a user defined action whenever an observed file is modified. At that point trigger a CakePHP test suite command line argument and send the results to growl. And there we have it, continuous testing with growl notifications on CakePHP using Watchr.
Categories: Open Source

Output valid and clean (x)HTML with TidyHelper

Fri, 07/09/2010 - 23:43
Small helper that you can use to output valid, minified and clean (x)HTML automatically!
Categories: Open Source

Installing an Intrusion Detection System in your CakePHP application

Fri, 07/09/2010 - 23:42
How to install an Intrusion Detection System to protect your CakePHP application from hackers
Categories: Open Source

Breadcrumb Helper

Sat, 06/26/2010 - 01:55
If you are tired of setting up breadcrumbs for your screens, this helper is for you.
Categories: Open Source

Creating PDF files with Html2ps/Html2pdf

Sat, 06/26/2010 - 01:50
Html2ps (also known as Html2pdf) is a free PHP tool wich allows users to create their own PDF files from a complete designed html page. The different between this version and the one from Kalileo (http://bakery.cakephp.org/articles/view/creating-pdf-files-with-cakephp-and-tcpdf) is that this Html2pdf allows complete websites including all css files, images, tables, divs, etc.
Categories: Open Source

Multiple Forms per page for the same model

Sat, 06/26/2010 - 01:48
When CakePHP validates a form, validation errors appear on ALL forms on the same page that belong to that model. Let's fix this.
Categories: Open Source

Url shorten behavior

Fri, 06/11/2010 - 14:58
A while ago I started working on some twitter services and I needed an automatic urlshortner. This first started as a model that would shorten en url and save the result in a table for caching purposes. After a good chat with a friend it turned into a behavior with the model only using the behavior to act like it did before. One of the reasons for a behavior was to create a simple interface for the developer without the need to poll the caching model but at the same time be able to use the cache model when the resulting short url wouldn’t be stored anywhere else (like an autmatic tweet). The model currently supports 4 different services (I want to add more in the future tho so any suggestions are welcome): 0x.tc, is.gd, bit.ly and u.nu. (Taken from http://blog.wyrihaximus.net/2010/04/cakephp-url-shorten-behavior-0x-tc-bit-ly-is-gd-and-u-nu/ as is most of the article.)
Categories: Open Source

Creating PDF files with CakePHP and TCPDF

Tue, 06/08/2010 - 22:21
With CakePHP 1.2 creating PDFs with CakePHP has just gotten a lot easier. This tutorial shows how to combine CakePHP and the powerful TCPDF for easy PDF file creation.
Categories: Open Source

Twilio Datasource

Mon, 06/07/2010 - 03:36
This is a basic Twilio Datasource for reading/creating text messages.
Categories: Open Source

Syslog Component

Mon, 06/07/2010 - 03:30
This article provides the code for a SysLog class for use with Cake v1.3.1 to enable
Categories: Open Source

CakePHP 1.3.2 released

Sun, 06/06/2010 - 12:15
The core team have actioned a number of important bug reports since the release of CakePHP 1.3.1[1]. These reports address issues with caching and Windows support that warranted a faster release than normal. And so, we are proud to announce the immediate availability of CakePHP 1.3.2[2]. Thanks to those that reported the issues, and helped with tracking down the problem.
Categories: Open Source

Custom Baking with CakePHP 1.3

Wed, 06/02/2010 - 20:53
Although I like CakePHP and Bake, I needed to change the basic baked screens and behaviors. This sent me to explore how to customize the actions and templates for CakePHP 1.3
Categories: Open Source

CakePHP 1.3.1 now with delicious sprinkles

Sat, 05/29/2010 - 13:16
The CakePHP development team is happy to announce the release of CakePHP 1.3.1[1]. 1.3.1 is the first maintenance release for 1.3 and contains bugfixes and optimizations for features found in 1.3. No new features will be introduced in the maintenance releases for 1.3. Regular maintenance releases for 1.3 are planned on a monthly basis for the near future.
Categories: Open Source

960 Fluid Grid System Bake Templates

Wed, 05/26/2010 - 09:16
Want to use 960 grid system in your baked app? Ever see this "fluid" template that uses it? http://www.designinfluences.com/fluid960gs - I put it into some bake templates.
Categories: Open Source

Multiple Undo

Wed, 05/12/2010 - 15:07
This plugin adds undo/redo functionality to any app using a very simple database structure. I am new to cake and this is my first attempt at making a contribution. It is in a very early state and I would love to see what the experienced bakers can show me about it.
Categories: Open Source

Gearing up: New repository and 2.0 development branch available

Sun, 05/09/2010 - 01:56
Since the release of CakePHP 1.3.0[1], the development team has been working on CakePHP 2.0 as well as the numerous tickets on the 1.2[2] and 1.3[3] branches. We're pushing a fair amount of effort into CakePHP 2.0 and making changes that we've been keen to make for some time (See the 2.0 development roadmap[4]).
Categories: Open Source

Barcode Helper

Fri, 04/30/2010 - 14:46
In my project I needed a helper to generate different types of barcodes
Categories: Open Source