Articleshttp://bakery.cakephp.org/Latest Articlesen-usToastyCMS a CMS for people who love bread that is baked twicehttp://bakery.cakephp.org/articles/icompuiz/2012/03/28/toastycms_a_cms_for_people_who_love_bread_that_is_baked_twice_1http://bakery.cakephp.org/articles/icompuiz/2012/03/28/toastycms_a_cms_for_people_who_love_bread_that_is_baked_twice_1I didn't follow any real software process so I lack documentation. I am still working on it but I am looking for some feedback. I have included some getting started information https://github.com/icompuiz/ToastyCMS/blob/master/READMEIt is built on CakePHP 2.0.1.I am thinking about reimplementing it with cakephp 2.1.1 and using more of the cakephp conventions like plugins to support extensibilit...General InterestWed, 28 Mar 2012 17:29:49 +0000Code Authors, Please mention the CakePHP version!http://bakery.cakephp.org/articles/saidbakr/2011/10/22/code_authors_please_mention_the_cakephp_versionhttp://bakery.cakephp.org/articles/saidbakr/2011/10/22/code_authors_please_mention_the_cakephp_versionIn other word, Helpers, Components, behaviors and plugins authors must mention the version of CakePHP that is compatible with their code.The mention should be typed in the first line of the introduction for the subject you written, something like:This Plugin compatible with Cake 1.2.xSo from the first line and without time losing, the developer who using Cake 1.3.x will know that plugin is not,...General InterestSat, 22 Oct 2011 16:59:53 +0000Adopting an IDE for CakePHPhttp://bakery.cakephp.org/articles/saidbakr/2011/09/19/adopting_an_ide_for_cakephphttp://bakery.cakephp.org/articles/saidbakr/2011/09/19/adopting_an_ide_for_cakephp<p>Complete and full support, means that it should able to do the following two points:<ol><li>Creating new project from scratch in a GUI wizard manner</li><li>The ability to auto-complete any aspect of multiple choices in the code, such as $components, $helpers, $this-Session, $this-ModelName, etc</li> </ol></p><p>I think such step will increase the popularity of CakePHP and it will short the learning curve, beside introducing of...</p>General InterestMon, 19 Sep 2011 16:59:52 +0000NeptunIDE: CakePHP dedicated IDEhttp://bakery.cakephp.org/articles/jakubl_1/2011/07/25/neptunide_cakephp_dedicated_idehttp://bakery.cakephp.org/articles/jakubl_1/2011/07/25/neptunide_cakephp_dedicated_ide<p>Now, I’d like to share my job with others, and I’m looking for beta-testers, who will help me make it better. You may sign up for beta at www.NeptunIDE.com</p><p>It’s still work in progress and I plan to start beta testing phase at the beginning of August. Until the end of July I'm developing the project at Global Startup Challenge 2011 competition with two friends.</p><p>The idea behind NeptunIDE is not onl...</p>General InterestMon, 25 Jul 2011 21:35:20 +0000Cakephp SwiftMailer4.X.X Component with batch sendhttp://bakery.cakephp.org/articles/rajibahmed/2011/02/23/cakephp_swiftmailer4_x_x_component_with_batch_sendhttp://bakery.cakephp.org/articles/rajibahmed/2011/02/23/cakephp_swiftmailer4_x_x_component_with_batch_sendI have uploaded the code to github.com at http://github.com/rajibahmed/cakephp_swiftmailer4x This component lets you leverage the batchSend method of swiftmailer library to send bacth email / newsletters to your user.get the code at https://github.com/rajibahmed/cakephp_swiftmailer4xand all the credit goes to sky_l3ppard :)General InterestWed, 23 Feb 2011 05:35:34 +0000phpgacl for Cake 1.3http://bakery.cakephp.org/articles/carcus88/2011/02/15/phpgacl_for_cake_1_3http://bakery.cakephp.org/articles/carcus88/2011/02/15/phpgacl_for_cake_1_3The PHPGACL project has been around for some times and provides a more customizable approach to ACL for CakePHP then the built in ACL functions. In the early cakephp days its was available for version 1.1 but since 1.2 it has not been compatible. We continued to update it in house for up to cake 1.3 and have released our code here. http://code.google.com/p/cakephp-phpgacl/In the future I will p...General InterestTue, 15 Feb 2011 17:51:40 +0000Change the position of your validation error messageshttp://bakery.cakephp.org/articles/lucianobargmann/2010/12/09/change_the_position_of_your_validation_error_messageshttp://bakery.cakephp.org/articles/lucianobargmann/2010/12/09/change_the_position_of_your_validation_error_messagesIn my layout, I was having a hard time accepting the error message below input tags. I want it between the label and the input.As you may know, automagic form elements have some placeholders on input options .I tried using $options['between'] but that wasn't nice code. Well, I like nice code so I went after alternatives.After spending some time trying variations of "cakephp validation error pos...General InterestThu, 09 Dec 2010 22:18:40 +0000EpisodeCMShttp://bakery.cakephp.org/articles/razbakov/2010/08/31/episodecmshttp://bakery.cakephp.org/articles/razbakov/2010/08/31/episodecms[p]User interface consist of:[li]main menu[li]logged user information[li]notification area[li]navigation area[li]content area[li]additional information area[/p][p]Default menu separated to:[li]console[li]content[li]users[/p][p]Administrator home page is “Notifications”. There are information about all new events that happened while administrator was offline. He can react on notifications or...General InterestTue, 31 Aug 2010 07:07:02 +0000Custom Baking with CakePHP 1.3http://bakery.cakephp.org/articles/rascoop/2010/06/02/custom-baking-with-cakephp-1-3http://bakery.cakephp.org/articles/rascoop/2010/06/02/custom-baking-with-cakephp-1-3For the past few weeks, I have been working with CakePHP to develop a new application. Because I do not want to code all the data entry screens yet, I was researching how to custom bake my controllers and views.First thing I have done is to remove the code that generates the bar stripes and replace it with jquery doing the same. First part of customization was to add a default.ctp in my app/vie...General InterestWed, 02 Jun 2010 19:53:36 +0000Using SQL_CALC_FOUND_ROWS with paginationhttp://bakery.cakephp.org/articles/techlands/2010/05/18/using-sql_calc_found_rows-with-paginationhttp://bakery.cakephp.org/articles/techlands/2010/05/18/using-sql_calc_found_rows-with-paginationI came across a situation while trying to paginate a query with multiple joins and a group by condition that the way cake was calculating the total [i]count[/i] for the result set was returning an incorrect value.Did a couple changes to Controller::paginate to detect if SQL_CALC_FOUND_ROWS is in your fields list and use it to calculate the total rows.First and most important change you need to ...General InterestTue, 18 May 2010 15:24:02 +0000Benchmark Comparison of 1.3 RC3 and 1.2.6http://bakery.cakephp.org/articles/hiromi/2010/04/08/benchmark-comparison-of-1-3-rc3-and-1-2-6http://bakery.cakephp.org/articles/hiromi/2010/04/08/benchmark-comparison-of-1-3-rc3-and-1-2-6[h4]Environment[/h4][ulist][li]OS Windows Vista 32bit Home Edition[/li][li]PHP5.2.6[ulist][li]No APC[/li][/ulist][/li][li]mysql Ver 14.14 Distrib 5.1.42, for Win32 [/li][/ulist][h4]Setup[/h4][list][li]Download archives from [url]http://github.com/cakephp/cakephp1x/downloads[/url][/li][li]Extract them into following directory.[ulist][li]WEBROOT/cakebench/12 = 1.2.6[/li][li]WEBROOT/cakebench/13 =...General InterestThu, 08 Apr 2010 08:49:43 +0000Check Member / User Online or Offline Statushttp://bakery.cakephp.org/articles/imran7000/2010/03/12/check-member-user-online-or-offline-statushttp://bakery.cakephp.org/articles/imran7000/2010/03/12/check-member-user-online-or-offline-status[b]I was just searching for a time difference code in Bakery but couldn't find the simple code. I have developed and used the following code to calculate the time whether the User/Member is online or offline.[/b]</h3>Only 3 Steps to follow.</h3>[quote]I am assuming that you have the table named MEMBER [/quote]1. Make a field last_visit in MEMBER Table.2. For APP CONTROLLER.[component]class AppController ...General InterestFri, 12 Mar 2010 07:29:40 +0000Introducing VaM Carthttp://bakery.cakephp.org/articles/vam-cart/2010/03/10/introducing-vam-carthttp://bakery.cakephp.org/articles/vam-cart/2010/03/10/introducing-vam-cartVaM Cart - Free, Open Source CakePHP Based Shopping Cart.[h3]Features:[/h3] * Easy Installation. * CSS, JS minify and compress. * SEO - Search Engine Optimization. * Unlimited Categories, Products. * CakePHP, MVC, Smarty. * Multi Language, Multi Currency. * Templatable. * Open Source. * Automatic Image Resize. * Product Reviews. * Coupons...[h3]Online Demo:[/h3][url]http://vamcart.com/demo/[/ur...General InterestWed, 10 Mar 2010 07:35:58 +0000For beginners: famous pitfalls with cake developmenthttp://bakery.cakephp.org/articles/alexdd55/2009/09/28/for-beginners-famous-pitfalls-with-cake-developmenthttp://bakery.cakephp.org/articles/alexdd55/2009/09/28/for-beginners-famous-pitfalls-with-cake-development[h3]Incorrect filenames[/h3]It happens to me over and over again, writing a filename with or without an "s" at the end, in code and as a filename also. This drives me crazy, because it takes hours and hours to find this mistake, if you only watch the code.Try to stick with the conventions:Contollers are always plural, e.g. users_controller.phpModels are singular, e.g. user.php [h3]Remember to u...General InterestMon, 28 Sep 2009 15:47:41 +0000Atlas kotasoft cakephphttp://bakery.cakephp.org/articles/atlascakephp/2009/09/25/atlas-kotasoft-cakephphttp://bakery.cakephp.org/articles/atlascakephp/2009/09/25/atlas-kotasoft-cakephpNew application opensource, is now in beta version 0.1. This application make easy cakephp. Generate code in a interface web. It´s very useful, you can configure your projects and generate when you need. http://www.atlascakephp.comNext release with 1.25 cakephp version, with new feature and refactor code. Will be out next week.General InterestFri, 25 Sep 2009 14:13:00 +0000Solution for schema generation TIMESTAMP default value failurehttp://bakery.cakephp.org/articles/shulga/2009/08/16/solution-for-schema-generation-timestamp-default-value-failurehttp://bakery.cakephp.org/articles/shulga/2009/08/16/solution-for-schema-generation-timestamp-default-value-failureThe code responsible for column creation is in the cake/libs/model/datasources/dbo_source.php file. Scan for the “function buildColumn”. The particular place where default DB fields values are handled is this:[component]if && isset && $column['default'] === '') {$column['default'] = null;}if && $column['key'] == 'primary' && $type == 'integer') {$out .= ' ' . $this-columns['primary_key']['n...General InterestSun, 16 Aug 2009 18:03:08 +0000October 30 - 31, CakeMatsuri Tokyohttp://bakery.cakephp.org/articles/yandod/2009/08/14/october-30-31-cakematsuri-tokyohttp://bakery.cakephp.org/articles/yandod/2009/08/14/october-30-31-cakematsuri-tokyo[h3]Date:[/h3]2009/10/30 - 2009/10/31 [h3]Place:[/h3]Tokyo,Japan.[h3]Language:[/h3]Japanese / EnglishWe are going to provide English translation for all sessions.[h3]To be a speaker[/h3]Contact to yandod[at]gmail.com with these information.We are waiting report of your country, tips and tricks and other general story.[list][*]Title and description.[*]your name and contact.[*]Which language you ...General InterestFri, 14 Aug 2009 16:12:55 +0000How to Add AutoComplete to Eclipse/Aptanahttp://bakery.cakephp.org/articles/gravyface/2009/07/23/how-to-add-autocomplete-to-eclipse-aptanahttp://bakery.cakephp.org/articles/gravyface/2009/07/23/how-to-add-autocomplete-to-eclipse-aptanaIf you haven't already, create an AppController in your application folder. By default, the file app_controller.php should be created in /your/cake/install/app/[h3]Adding AutoComplete in Controllers for Models and Components[/h3]Copy/paste the following lines somewhere in your app_controller.php; when finished, it should look like this:[controller]/** * Post Model * * @var Post */ var $Post;/**...General InterestThu, 23 Jul 2009 09:40:00 +0000Report: CakePHP meet-up at Tokyo 4thhttp://bakery.cakephp.org/articles/yandod/2009/05/24/report-cakephp-meet-up-at-tokyo-4thhttp://bakery.cakephp.org/articles/yandod/2009/05/24/report-cakephp-meet-up-at-tokyo-4thIn Japan,Meet-up event is really popular activity in web engineers.Also CakePHP community usually has meet-up event. We had Recent meet-up last night in Tokyo,This event had 60 sheats, But the registration got full in a flash.Many bakers gathered in Tokyo.They enjoyed 10 useful sessions, tasty beer and special cakephp pancake.Photos:[img]http://farm3.static.flickr.com/2445/3554078571_194cae8f86...General InterestSun, 24 May 2009 08:30:02 +0000Rebuilding MySQL Tables based on Model Cachehttp://bakery.cakephp.org/articles/Datawalke/2009/01/21/rebuilding-mysql-tables-based-on-model-cachehttp://bakery.cakephp.org/articles/Datawalke/2009/01/21/rebuilding-mysql-tables-based-on-model-cacheWhile this is not a problem most people should run into the solution is fairly simple if using the script below. If you have any questions or comments feel free to post or email me at: jim@bravegamer.com[h3]The Class[/h3][code]?php/** * Used to rebuild lost table schema based on CakePHP's cached model data * CakePHP stores its cached model information in seralized PHP format. * By reversing thi...General InterestWed, 21 Jan 2009 08:52:36 +0000