Skip to content

The Bakery, Everything CakePHP
Syndicate content
Recent Articles at The Bakery.
Updated: 1 year 17 weeks ago

CustomFinds Behavior

Sat, 09/25/2010 - 14:15
Behavior that enables you to config custom finds at Model in order to use with Model->find();
Categories: Open Source

User permissions based on a routing prefix

Thu, 09/23/2010 - 14:34
You want to limit users to specific parts of the site, but the using ACLs seems like overkill. It's pretty simple to limit a few groups to certain parts of the site based on cake's prefix routing.
Categories: Open Source

Password generator

Wed, 09/22/2010 - 18:07
Is a simple component to generate passwords automatically.
Categories: Open Source

Session based pagination

Tue, 09/21/2010 - 16:36
When i was working on my project, i had to implement search functionality for my project's list. So i wanted to make use of pagination, but when i search for something, i got the result appropriate, but the pagination sort didn't work. I had this error of "undefined variable paginator". The reason for this, data is which is received by controller ($this->data) is lost afterwards. So here's the solution for it.
Categories: Open Source

AJAX Helper with jQuery

Tue, 09/21/2010 - 16:18
AJAX Helper with jQuery. Some documentation and many examples on projects site. The AjaxHelper utilizes the ever-popular jQuery and jQuery UI libraries for Ajax operations and client side effects. See AJAX Helper with jQuery.
Categories: Open Source

Robust crypt functionality for use in CakePHP

Mon, 09/20/2010 - 07:49
Robust and flexible data encryption functionality inside your web application is an essential part of your toolkit when developing your next fantastic webapp. The right setup can help you through situations that are troublesome and/or painful to deal with otherwise.
Categories: Open Source

CakePHP 1.3.4 released

Sun, 09/12/2010 - 05:15
The CakePHP core team is proud to announce the immediate availability of CakePHP release 1.3.4. This release follows a month of effort from the team, and numerous reports from the community. Since the release of CakePHP 1.3.3 there have been 77 commits[1] and 54 tickets resolved.
Categories: Open Source

Wizard Component 1.2 Tutorial

Fri, 09/10/2010 - 09:45
Automates several aspects of multi-page forms including data persistence, form preparation and unique data processing, wizard resetting (manual and automatic), user navigation, and plot-branching navigation while maintaining flexibility with custom validation and completion callbacks. This is a tutorial for my Wizard Component 1.2 found here: http://bakery.cakephp.org/articles/view/wizard-component-1-2-1.
Categories: Open Source

Wizard Component 1.2

Fri, 09/10/2010 - 09:44
Automates several aspects of multi-page forms including data persistence, form preparation, wizard resetting (manual and automatic), user navigation, and plot-branching navigation while maintaining flexibility with custom validation and completion callbacks. Tutorial can be found here: http://bakery.cakephp.org/articles/view/wizard-component-1-2-tutorial
Categories: Open Source

Boost performance by removing .htaccess PLUS multi-site with VirtualDocumentRoot

Fri, 09/10/2010 - 09:41
This tutorial is intended for developers who: 1) Are creating a cake app that needs to scale 2) Use apache and have access to modify their apache config Using apache .htaccess files is a huge performance hit - and should be avoided at all costs. The tutorial below will show you how to get "pretty url" features of cake, while not having to use .htaccess to do so. The first half of the article will explain how to get rid of .htaccess, while the second half will tie it into a more complex (but real world) example of how you can leverage this while using 1 apache config to serve multiple subdomains.
Categories: Open Source

Using memcached to run your sessions

Fri, 09/10/2010 - 09:36
This tutorial is intended for cakers who intend to make a scalable web app. Being familiar with php.ini, memcached and sessions is recommended.
Categories: Open Source

Social media helper

Fri, 09/10/2010 - 09:00
This helpers allows you to simply add buttons using AddThis. I created this out of the need to simply add social media bookmarking to one of my clients' websites. For more information go to http://www.addthis.com/.
Categories: Open Source

CakeFest 2010: Thats a wrap

Mon, 09/06/2010 - 13:00
CakeFest 2010 has come to a close. After 4 days of jam-packed talks, workshops, lightning talks and social outings, we're sad to see it finish.
Categories: Open Source

EpisodeCMS

Tue, 08/31/2010 - 08:07
EpisodeCMS is CakePHP based content management system. Features: control panel, events API, module management, multilanguage and translations, themes http://episodecms.com/ Please help me to improve it. Thanks.
Categories: Open Source

Paginating Data with CakePHP, Dojo Data Store and DataGrid

Tue, 08/31/2010 - 08:00
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

Alertpay automated sales via IPN

Tue, 08/31/2010 - 07:42
I'm going to show you how I implemented a payment module via the Alertpay payment processor.
Categories: Open Source

CKSource Helper for CKEditor

Tue, 08/31/2010 - 07:36
CKEditor is a text editor to be used inside web pages. It's a WYSIWYG editor, which means that the text being edited on it looks as similar as possible to the results users have when publishing it. It brings to the web common editing features found on desktop editing applications like Microsoft Word and OpenOffice. This helper extends CakePHP's Form core helper. I created the ckeditor function to make it easy to add a CKEditor to any form. I called it CKSource so you can add CKFinder later and have all the CKSource products in one helper. This is still very basic, so feel free to submit changes in the comments. Update: Added comment for single or double underscore regarding initInputField Update: Added $this->webroot to base path. This should fix some problems when working in sub-directories.
Categories: Open Source

Complete bbcode helper with custom tags

Sun, 08/29/2010 - 12:17
Hi to everybody, this is a simple way of implement a bbcode parser, i have upload this because i haven`t found anything that let me implement my own tags and the helpers i have seen werent very secure.
Categories: Open Source

Pagination for custom queries

Sun, 08/29/2010 - 11:25
I was doing a project, and needed to do a custom query to return a certain set of data from the table. I needed to be able to paginate those results, and using the "out of the box" or "base" pagination was not going to be able to handle this. So I needed to use the power of the paginator object, and set a custom query, using a custom model object, and set the options for the views to build the links appropriately.
Categories: Open Source

How to use a Custom Session setup with Database Storage

Sun, 08/29/2010 - 04:07
There's plenty of information out there on how to create your own session handler for CakePHP, but when I needed to add some customization on top of the database storage system, I had to do a good amount of debugging and tracing to find out the best way to accomplish it. Hopefully, this will save you some time if you're doing the same thing.
Categories: Open Source