The Bakery: Models http://bakery.cakephp.org/ Recent Models Articles at The Bakery. en-us Fri, 04 Jul 2008 11:59:31 -0500 http://validator.w3.org/feed/docs/rss2.html CakePHP Bakery mariano@cricava.com (Mariano Iglesias) gwoo@cakephp.org (Garrett Woodworth) Extending of DboSource and Model with sql generator function. http://bakery.cakephp.org/articles/view/extending-of-dbosource-and-model-with-sql-generator-function Some times in SQL is very usefull and efficiency to use query from query using IN function. Some project require it. But Cakephp does not generate such queries and we need to create such requests to DB by hand. Wed, 10 Oct 2007 14:35:22 -0500 http://bakery.cakephp.org/articles/view/extending-of-dbosource-and-model-with-sql-generator-function Obvious trick to reduce amount of HABTM relationship tables http://bakery.cakephp.org/articles/view/obvious-trick-to-reduce-amount-of-habtm-relationship-tables-1 Trick howto reduce amount of HABTM tables in complex application Fri, 17 Aug 2007 07:56:57 -0500 http://bakery.cakephp.org/articles/view/obvious-trick-to-reduce-amount-of-habtm-relationship-tables-1 LDAP datasource for cakePHP http://bakery.cakephp.org/articles/view/ldap-datasource-for-cakephp This article presents a simple LDAP datasource which can be used with the cake framework (both 1.1.x and 1.2.x). With this datasource, a cake web application should be able to interact with a LDAP 'database' (such as openldap or Microsoft Active Directory) just as if it was a Sql-like database. Thu, 26 Jul 2007 18:58:18 -0500 http://bakery.cakephp.org/articles/view/ldap-datasource-for-cakephp Rails-like Data Validation http://bakery.cakephp.org/articles/view/rails-like-data-validation Validate your data like in rails: http://rails.rubyonrails.com/classes/ActiveRecord/Validations/ClassMethods.html Wed, 16 May 2007 14:48:43 -0500 http://bakery.cakephp.org/articles/view/rails-like-data-validation cURL Model http://bakery.cakephp.org/articles/view/curl-model This is a wrapper for cURL. Ideal if you need to grab data from another site or integrate into a system that uses GET or POST requests. Sun, 25 Feb 2007 07:32:00 -0600 http://bakery.cakephp.org/articles/view/curl-model dAuth v0.3 models http://bakery.cakephp.org/articles/view/dauth-v0-3-models User, Host, LoginAttempt models for dAuth v0.3 Wed, 15 Nov 2006 03:13:06 -0600 http://bakery.cakephp.org/articles/view/dauth-v0-3-models Using LDAP as a database http://bakery.cakephp.org/articles/view/using-ldap-as-a-database John Anderson wrote an article about building a model around LDAP. This snippit is an extension, implementing a much more full-featured LDAP model Sun, 15 Oct 2006 13:28:00 -0500 http://bakery.cakephp.org/articles/view/using-ldap-as-a-database Alternative Methods for Working with hasAndBelongsToMany Associations http://bakery.cakephp.org/articles/view/alternative-methods-for-working-with-hasandbelongstomany-associations As of 1.1.12.4205, CakePHP's current functionality for working with HABTM associations works very well for most applications, particularly those that lend themselves well to using multiple-selectTags or checkboxes. This article looks at proposed methods for adding or removing join records between two models that don't rely on bulky arrays and that minimize the amount of SQL executed on the database. Sun, 15 Jan 2006 05:41:00 -0600 http://bakery.cakephp.org/articles/view/alternative-methods-for-working-with-hasandbelongstomany-associations