Articleshttp://bakery.cakephp.org/Latest Articlesen-usAWS SES component for CakePHP2.0 +http://bakery.cakephp.org/articles/kvijay/2012/04/24/aws_ses_component_for_cakephp2_0http://bakery.cakephp.org/articles/kvijay/2012/04/24/aws_ses_component_for_cakephp2_0We use Amazon services for our day today applications & we use their SDK & write normal code to required controllers, So we planned to create a component for AWS service.Amazon Simple Email Service is a very popular email SMTP service by Amazon. It has lots of advantages like, Easy to use Good documentation Good fault tolerance Easy to integrate with existing architecture Detailed reporting abo...ComponentsTue, 24 Apr 2012 13:49:54 +0000SOPA Blackout componenthttp://bakery.cakephp.org/articles/eagerterrier2/2012/01/13/sopa_blackout_componenthttp://bakery.cakephp.org/articles/eagerterrier2/2012/01/13/sopa_blackout_componentOn the Tuesday 24th January 2012, the US Senate will vote on the internet censorship bill.Whilst it is an American law, it has far reaching repurcusions for the web as a whole. Sites such as Reddit have said that on January 18th they are going to go dark between 8am and 8pm.This component will let you join the cause. On 18th January your site will display a customisable page.Search engine ranki...ComponentsFri, 13 Jan 2012 14:09:09 +0000Layout Componenthttp://bakery.cakephp.org/articles/tpuglia/2012/01/05/layout_component_2http://bakery.cakephp.org/articles/tpuglia/2012/01/05/layout_component_2I am using Cake 2.0 Using themes and redering different view files based on theme, I cam across a limitation which locks you into using the same layouts for view files in each theme. I had a need to change the layout in a new theme so did not want to load the same layout file in app/views/layouts which is dictated by the controller. So I came up with a configurable approach to loading layouts w...ComponentsThu, 05 Jan 2012 06:18:29 +0000Layout Componenthttp://bakery.cakephp.org/articles/tpuglia/2012/01/05/layout_component_1http://bakery.cakephp.org/articles/tpuglia/2012/01/05/layout_component_1I am using Cake 2.0 Using themes and redering different view files based on theme, I cam across a limitation which locks you into using the same layouts for view files in each theme. I had a need to change the layout in a new theme so did not want to load the same layout file in app/views/layouts which is dictated by the controller. So I came up with a configurable approach to loading layouts w...ComponentsThu, 05 Jan 2012 06:17:59 +0000CakePHP 2 Captcha Component Based on Simple Math Problemshttp://bakery.cakephp.org/articles/konstantinko/2011/12/29/cakephp_2_captcha_component_based_on_simple_math_problemshttp://bakery.cakephp.org/articles/konstantinko/2011/12/29/cakephp_2_captcha_component_based_on_simple_math_problems# MathCaptcha Component for CakePHP 2. #Generates a basic math equation with human phrasing to prevent automated spam.It's still very much beatable by sophisticated spam bots but tends to prevent 99%of a website's usual spam anyways.Updates will be published on my [code blog].Inspired by and partially based on [Jamie Nay's] cakePHP 1.2 Math Captcha class.Features:+ differently phrased math prob...ComponentsThu, 29 Dec 2011 11:12:35 +0000ImageToolhttp://bakery.cakephp.org/articles/raitisg/2011/12/28/imagetoolhttp://bakery.cakephp.org/articles/raitisg/2011/12/28/imagetoolComponent for processing images Works with CakePHP 2.0, CakePHP 1.3 or as standalone class Code and examples on github: https://github.com/raitisg/CakePHP-ImageTool-ComponentComponentsWed, 28 Dec 2011 18:49:52 +0000Cake PHP Optimal Payment Component with ccPurchase, ccAuthorize, ccVerification, ccSettlement, ccStoredDataPurchase and ccStoredDataAuthorizehttp://bakery.cakephp.org/articles/subingeorge/2011/11/17/cake_php_optimal_payment_component_with_ccpurchase_ccauthorize_ccverification_ccsettlement_ccstoreddatapurchase_and_ccstoreddataauthorizehttp://bakery.cakephp.org/articles/subingeorge/2011/11/17/cake_php_optimal_payment_component_with_ccpurchase_ccauthorize_ccverification_ccsettlement_ccstoreddatapurchase_and_ccstoreddataauthorize<br />After few days days of testing in live of this the component, I have decided to publish this component to open source to community. I have implemented because, I found the lack of proper PHP codes for <strong>O ptimal Payment</strong>. Even though the implementation is too power full it lacks proper documentation and PHP codes. I have implemented same for cake php 2.0 . But I will release the Core PHP version i...ComponentsThu, 17 Nov 2011 19:49:02 +0000elRTE and elFinder Component + Helperhttp://bakery.cakephp.org/articles/eliasfa/2011/11/11/elrte_and_elfinder_component_helperhttp://bakery.cakephp.org/articles/eliasfa/2011/11/11/elrte_and_elfinder_component_helper1- Download the content from http://elrte.org/ and put it in your js public folder/js/elrte/<contents> and css also. Do the same for elFinder.2 - Create in your public folder one folder called public_upload3 - Put the class elFinder.class.php in vendor dir.<h1>Helper</h1><code>?php class CkHelper extends Helper { var $helpers = Array; function loadLibs { return $this-Html-css.$this-Html-script).$this-Html-script).$this...</code></contents>ComponentsFri, 11 Nov 2011 16:53:41 +0000ComponentLoader to load components on the flyhttp://bakery.cakephp.org/articles/geoff.garbers/2011/10/14/componentloader_to_load_components_on_the_flyhttp://bakery.cakephp.org/articles/geoff.garbers/2011/10/14/componentloader_to_load_components_on_the_flyThere are a number of scripts that have been floating around on the internet, showing how to create a ComponentLoader in CakePHP. However, I find that these loaders are not complete, as they don't load up all the associated components, nor do they execute all the callbacks.This component has been based heavily on those on the fly component loaders, but also expands heavily on them.Loading compo...ComponentsFri, 14 Oct 2011 15:25:17 +0000Image Resizer Component for CakePHP2http://bakery.cakephp.org/articles/mdunham918/2011/09/20/image_resizer_component_for_cakephp2http://bakery.cakephp.org/articles/mdunham918/2011/09/20/image_resizer_component_for_cakephp2I needed an easy way to resize photos in many controllers, and I noticed there was no ImageResize component currently out for CakePHP2. Well, now there is all you do is add 'ImageResizer' to your components array and bingo your ready to go. Its a very solid code base and does utilize exceptions for problems like file not found or invalid file format which can be caught.Get the source and usage ...ComponentsTue, 20 Sep 2011 16:42:14 +0000CakePHP 2.0.0-RC1 Phpbb3Authenticatehttp://bakery.cakephp.org/articles/manzati93/2011/09/18/cakephp_2_0_0-rc1_phpbb3authenticatehttp://bakery.cakephp.org/articles/manzati93/2011/09/18/cakephp_2_0_0-rc1_phpbb3authenticateI've just created an Auth plugin that allows the use of phpBB3 users table. I want to share it with cakephp users because i found it really interesting and usefull, mostly for developers who wants to integrate their app with a forum to create a community.You can find it here:https://github.com/ilmattodel93/cakephp-phpbb3authenticateComponentsSun, 18 Sep 2011 17:53:28 +0000Paypal Pro Componenthttp://bakery.cakephp.org/articles/jagjit/2011/09/14/paypal_pro_componenthttp://bakery.cakephp.org/articles/jagjit/2011/09/14/paypal_pro_component[b]CakePHP: Paypal Pro Component for Credit Card Payments[/b][code]?php//Author: Jagjit Singh Bhari//File: /app/controllers/components/paypal.php//@Copyright 2011 class PaypalComponent extends Object{var $API_Endpoint,$version,$API_UserName,$API_Password,$API_Signature,$nvp_Header, $subject, $AUTH_token,$AUTH_signature,$AUTH_timestamp;var $components=array;function __construct{if)$this-API_User...ComponentsWed, 14 Sep 2011 10:25:02 +0000ShortenComponent - A Component for URL Shorteninghttp://bakery.cakephp.org/articles/vizi0nary/2011/09/13/shortencomponent_-_a_component_for_url_shorteninghttp://bakery.cakephp.org/articles/vizi0nary/2011/09/13/shortencomponent_-_a_component_for_url_shorteningWell, I've made my first CakePHP Component, it's for URL Shortening and currently supports a number of shorteners such as:<br /><ul><br /><li>kwn.me </li><br /><li>bit.ly</li><br /><li>goo.gl </li><br /><li>YOURLS </li><br /></ul>You can find usage cases here: http://onemorefunction.com/blog/examples/shorten<br /><br />You can download the actual component file here: https://github.com/MadMikeyB/CakePHP-Scrapbook/blob/master/components/shorten.php<br /><br />Also, please remember to fill out all A...ComponentsTue, 13 Sep 2011 03:36:25 +0000Website Title and Character Set Componenthttp://bakery.cakephp.org/articles/abailiss/2011/01/29/website_title_and_character_set_componenthttp://bakery.cakephp.org/articles/abailiss/2011/01/29/website_title_and_character_set_component?php/* * Copyright 2011 Arron Bailiss <arron@arronbailiss.com> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF...</arron>ComponentsSat, 29 Jan 2011 05:45:46 +0000Website Title and Character Set Componenthttp://bakery.cakephp.org/articles/abailiss/2011/09/04/website_title_and_character_set_component_1http://bakery.cakephp.org/articles/abailiss/2011/09/04/website_title_and_character_set_component_1<code>?php/* * Copyright 2011 Arron Bailiss <arron@arronbailiss.com> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF...</arron></code>ComponentsSun, 04 Sep 2011 01:32:08 +0000Post/Redirect/Get design pattern componenthttp://bakery.cakephp.org/articles/luciansabo/2011/08/12/post_redirect_get_design_pattern_componenthttp://bakery.cakephp.org/articles/luciansabo/2011/08/12/post_redirect_get_design_pattern_componentThis component has two methods:[b]redirect[/b] - makes the actual redirect and conversion between POST data and GET data. After calling redirect the data is available in $this-params['named'][b]decode[/b] - needed for converting back the previous POST data located now in $this-params['named'] after using redirect. After calling decode the data is back in $this-dataThe data is transported by HTT...ComponentsFri, 12 Aug 2011 15:14:31 +0000Attempt Componenthttp://bakery.cakephp.org/articles/cyberthom/2011/07/06/attempt_componenthttp://bakery.cakephp.org/articles/cyberthom/2011/07/06/attempt_componentAPI---### countReturns the number of failed attempts for a certain action.### limitReturns false if the number of failed attempts is bigger than the passed limit.### failCreates a failed attempt that counts towards the limit for the passed duration### resetDeletes all failed attempts for a certain action### cleanupDeletes all expired failed attempts from the database. This should be run via Cak...ComponentsWed, 06 Jul 2011 23:26:34 +0000TwitterComponent for CakePHPhttp://bakery.cakephp.org/articles/nitsche/2011/06/29/twittercomponent_for_cakephphttp://bakery.cakephp.org/articles/nitsche/2011/06/29/twittercomponent_for_cakephp<p><h2><b>1. Installation, setup and authentication</b></h2></p><p><b>1.</b> First you need to visit https://dev.twitter.com/apps/new and register your new Twitter App.<br><b>2.</b> Next you need to download the <i>CakePHP-TwiterComponent</i> from GitHub and extract the files in <code>/app/controllers/components</code> and create there a folder called <i>Twitter</i>.<br><b>3.</b> Now you're able to use the <i>TwitterComponent</i> like an 'usual' component in every controller you li...</p>ComponentsWed, 29 Jun 2011 07:34:37 +0000LogUtil Componenthttp://bakery.cakephp.org/articles/milad.jafary/2011/06/05/logutil_component_1http://bakery.cakephp.org/articles/milad.jafary/2011/06/05/logutil_component_1<p>Before we starting this tutorial ,we should note about That you can find all steps in attachment.I put all your prerequisite in my weblog. you could download them from https://sites.google.com/site/miladjafary/cake-php-modules/</p><p><br />I packed<strong> app </strong>folder of cakePHP which I run it before and attached it as zip file,so that you can download it and see the result.</p><p>Let&#39;s Go:</p><p>1)You need to the table which cou...</p>ComponentsSun, 05 Jun 2011 10:25:43 +0000Default action componenthttp://bakery.cakephp.org/articles/tomas_maly/2011/04/27/default_action_componenthttp://bakery.cakephp.org/articles/tomas_maly/2011/04/27/default_action_component? class DefaultActionComponent extends Object{ function startup { if ) { if && method_exists) { # Use the 'admin_' version if desired. $prefix = !empty ? $controller-params['prefix'] : null; $action = !empty ? "{$prefix}_{$controller-defaultAction}" : $controller-defaultAction; array_unshift; # Put old 1st param into passed list... $params = array_merge; $controller-action = $action; $output = ...ComponentsWed, 27 Apr 2011 16:27:35 +0000