The Bakery: http://bakery.cakephp.org/ Recent Articles at The Bakery. en-us Sat, 04 Jul 2009 11:29:26 -0500 http://validator.w3.org/feed/docs/rss2.html CakePHP Bakery mariano@cricava.com (Mariano Iglesias) gwoo@cakephp.org (Garrett Woodworth) Flex remoting with cakePHP - CpAmf plugin http://bakery.cakephp.org/articles/view/flex-remoting-with-cakephp-cpamf-plugin-1 The goal of this project was to use cakePHP controllers, as flash remoting services.The basic idea was to use AMFPHP 1.9, because we used it before, and it was a good choice in earlier projects. Sat, 27 Jun 2009 21:23:51 -0500 http://bakery.cakephp.org/articles/view/flex-remoting-with-cakephp-cpamf-plugin-1 PluginHandler to load configuration and callbacks for plugins http://bakery.cakephp.org/articles/view/pluginhandler-to-load-configuration-and-callbacks-for-plugins Purpose of this component is to make plugins more powerful by adding a callbacks from any controller to trigger before or after any application action for every plugin used in the application. Another feature is to load plugin configuration files automatically. Sun, 21 Jun 2009 08:06:01 -0500 http://bakery.cakephp.org/articles/view/pluginhandler-to-load-configuration-and-callbacks-for-plugins Plugin development tips and tricks http://bakery.cakephp.org/articles/view/plugin-development-tips-and-tricks This tutorial is for users who are already familiar with plugins. The main objective of it is to show the power of plugins and to make them more independent from an application itself. Sun, 21 Jun 2009 04:20:08 -0500 http://bakery.cakephp.org/articles/view/plugin-development-tips-and-tricks AJAX star rating plugin http://bakery.cakephp.org/articles/view/ajax-star-rating-plugin-1 In the days of social networks, you often want to give users the possibility to rate things and to see the average rating. The most common user interface implementation is a star rating system. This plugin now offers you an easy, customizable way to enable your users to star rate any CakePHP model you want. Sat, 20 Jun 2009 02:25:11 -0500 http://bakery.cakephp.org/articles/view/ajax-star-rating-plugin-1 Mailchimp API Component http://bakery.cakephp.org/articles/view/mailchimp-api-component-1 Mailchimp provides a nice API to their email marketing service. Here is a very simple component that you can use to make calls to the Mailchimp API. This component assumes that you are using PHP 5 or higher. Sat, 20 Jun 2009 00:24:02 -0500 http://bakery.cakephp.org/articles/view/mailchimp-api-component-1 String localization with dynamic content http://bakery.cakephp.org/articles/view/string-localization-with-dynamic-content Cake has a wonderful shell script function built into it called extract that will run through your code and create a .po file full of all of the text contained within your __('My text here') calls. You can then pass these files onto to translators to modify them for your languages. When you want to add variables though, you have to break it up into pieces which may change the context of the phrase. Here's a way around that. Sat, 20 Jun 2009 00:08:52 -0500 http://bakery.cakephp.org/articles/view/string-localization-with-dynamic-content Simple Colorpicker http://bakery.cakephp.org/articles/view/simple-colorpicker I needed a simple color picker for a CMS-like site I'm building. Using the free DHTML colorpicker from this site (http://www.free-color-picker.com/download.php?version=dhtmlcolors_grays), I made a helper. Sat, 20 Jun 2009 00:06:00 -0500 http://bakery.cakephp.org/articles/view/simple-colorpicker unaneem.com : a community website built on CakePHP with extensive use of AJAX http://bakery.cakephp.org/articles/view/unaneem-com-a-community-website-built-on-cakephp-with-extensive-use-of-ajax On April 2007 a friend and I started a project we named "unaneem". The purpose of this project was to develop a community website which helps people to share and organize events.We decided to use only open source technologies. As our core application library we used CakePHP.The project steps over time were : April 2007 to June2007 : Functional studies June 2007 to July 2007 : Templates design July 2007 to September 2007 : Database development September 2007 to October 2008 (now): Application development October 2008 : Production deployment : unaneem goes online ! October 2008 to 2009 (now): Beta version test and debug The application uses CakePHP as its core PHP library, Prototype as its core AJAX library and many open source external PHP and JS libraries : PHP Libraries : PHPThumb PHPBrowscap KCaptcha ... JS Libraries : Scriptaculous SWFUpload Lightbox ... You can see the application current version at http://www.unaneem.com/ Sat, 20 Jun 2009 00:04:47 -0500 http://bakery.cakephp.org/articles/view/unaneem-com-a-community-website-built-on-cakephp-with-extensive-use-of-ajax Serving up actions as AJAX with jQuery in a few simple steps http://bakery.cakephp.org/articles/view/serving-up-actions-as-ajax-with-jquery-in-a-few-simple-steps How to quickly setup AJAX to call Cake actions using jQuery. (For the people who keep wondering when there will be a jQuery helper) Sat, 20 Jun 2009 00:00:07 -0500 http://bakery.cakephp.org/articles/view/serving-up-actions-as-ajax-with-jquery-in-a-few-simple-steps Sitemap Deluxe http://bakery.cakephp.org/articles/view/sitemap-deluxe A nice and easy way for automatically generate your sitemaps. Main features: generate html & xml sitemap, send your sitemap to search engines (Google, Yahoo, Ask, Bing), auto generated robot.txt, support for dynamics and statics sections... Sun, 14 Jun 2009 23:33:02 -0500 http://bakery.cakephp.org/articles/view/sitemap-deluxe WYSIWYGPro Helper and tutorial http://bakery.cakephp.org/articles/view/wysiwygpro-helper-and-tutorial I couldn't find any resources on setting up WYSIWYGPro with Cake so I developed this helper along with instructions for total integration with your system. If you've never used WYSIWYGPro, you should check out the demos. I've tried every WYSIWYG editor out there and none of the other ones even come close as far as I'm concerned. Sun, 14 Jun 2009 09:06:05 -0500 http://bakery.cakephp.org/articles/view/wysiwygpro-helper-and-tutorial FMCakeMix: A Full Read/Write Datasource for FileMaker http://bakery.cakephp.org/articles/view/fmcakemix-a-full-read-write-datasource-for-filemaker Use a FileMaker database as a full read/write datasource with support for relationships and more... Fri, 12 Jun 2009 07:58:09 -0500 http://bakery.cakephp.org/articles/view/fmcakemix-a-full-read-write-datasource-for-filemaker Gravatar Helper http://bakery.cakephp.org/articles/view/gravatar-helper From the Gravatar Website: A gravatar, or globally recognized avatar, is quite simply an avatar image that follows you from weblog to weblog appearing beside your name when you comment on gravatar enabled sites. Avatars help identify your posts on web forums, so why not on weblogs? Gravatars are a great addition to any blog, or indeed any user submitted content. This helper is designed to provide gravatar output without the fuss Thu, 11 Jun 2009 09:21:03 -0500 http://bakery.cakephp.org/articles/view/gravatar-helper PublishableBehavior http://bakery.cakephp.org/articles/view/publishablebehavior PublishableBehavior allows the use of datetime fields for start and end ranges on content. Included functionality allows for checking published status, toggling to published / unpublished status, and adding conditions to a find to properly filter those results Wed, 10 Jun 2009 02:46:00 -0500 http://bakery.cakephp.org/articles/view/publishablebehavior A Component to help creating SOAP services http://bakery.cakephp.org/articles/view/a-component-to-help-creating-soap-services A component providing automatic WSDL generation using jool.nl Webservice Helper library, CakePHP caching of generated WSDL, and automatic handling of SOAP calls. Fri, 05 Jun 2009 04:49:29 -0500 http://bakery.cakephp.org/articles/view/a-component-to-help-creating-soap-services