Articles
Change the position of your validation error messages
I don't like the validation error messages being displayed below the input tag, so after not finding how to change its position on the web, I found it on code.
CakePHP has a neat templated way to render input tags on FormHelper. And this introduced me to the [b]$format[/b] option.
- Published by lucianobargmann 12/09/10 - 00:00
- 11603 views
- 3 comments
session setflash with cool jquery effects
Hi, I am Gautam Lakum. I am a php web developer and love to use cakephp for custom applications. I love to share and post something new articles, tutorials and tools with others. For that, you can visit my blog www.gautamlakum.com
This is my first article for cakephp.org. I hope it will be useful to all of you.
- Published by webdevbit 12/07/10 - 00:00
- 12464 views
- 1 comment
In Place Editing with jQuery
In 2008, I wrote an [url="http://bakery.cakephp.org/articles/abalonepaul/2008/07/07/using_the_ajax_helper_for_inplaceeditor_and_inplacecollectioneditor_fields"]article on using the Scriptaculous InPlaceEditor and InPlaceCollectionEditor[/url]. I recently updated that project and converted the editors to jQuery. This is a brief tutorial on using the [url=http://code.google.com/p/jquery-in-place-editor/]jQuery In Place Editor[/url]. This is much easier than using Prototype and Scriptaculous.
- Published by abalonepaul 12/04/10 - 00:00
- 13739 views
- 3 comments
DBO extension to get keyed results
I have often found the need to have the result of a find( 'all' ) keyed to the tables id. I had been doing this in the code with an, often expensive, foreach loop:
[code]
$keyResults = array();
foreach( $results as $result )
{
$keyResults[ $result[ 'Model' ][ 'id' ] ] = $result;
}
[/code]
I didn't like this so I have created an extension to the MySqli DBO object (as I am using MySqli) that recreates the find methods to return a result keyed to the tables id
- Published by mbates 11/30/10 - 00:00
- 986 views
- 0 comments
Make salesforce objects more cake like
I've just started to use the salesforce datasource created by [url=http://bakery.cakephp.org/articles/cwestonr/2010/01/26/example-datasource-for-salesforce-enterprise-1]cwestonr[/url] and have created a method to make the results more cake like
- Published by mbates 11/30/10 - 00:00
- 8210 views
- 0 comments
Boost performance by removing .htaccess PLUS multi-site with VirtualDocumentRoot
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.
- Published by rynop 11/29/10 - 00:00
- 27923 views
- 15 comments
DBO extension to get keyed results
I have often found the need to have the result of a find( 'all' ) keyed to the tables id. I had been doing this in the code with an, often expensive, foreach loop:
[code]$keyResults = array();
foreach( $results as $result )
{
$keyResults[ $result[ 'Model' ][ 'id' ] ] = $result;
}
[/code]
I didn't like this so I have created an extension to the MySqli DBO object (as I am using MySqli) that recreates the find methods to return a result keyed to the tables id
- Published by mbates 11/29/10 - 00:00
- 6987 views
- 0 comments
Google Weather API Datasource
This Datasource delivers the weather forecast based on zip and country using the google weather api
- Published by anachronist 11/28/10 - 00:00
- 6200 views
- 5 comments
AuthComponent rewritten
The AuthComponent::startup() method is not eanough readable and extendable. Also it does not handle bare requests as it should.
- Published by prond 11/27/10 - 00:00
- 4990 views
- 0 comments
SQL INSERT with known primaryKey from CakePHP Model::save()
I've asked myself and others quite a number of times if this is even possible in CakePHP, and always, always the answer has been that since CakePHP uses the presence/absence of the Model's id to do a save or update - that it's impossible. Today I show you how.
- Published by Iiridayn 11/23/10 - 00:00
- 6248 views
- 1 comment
ACL plugin
The core of CakePHP contains a system to control access rights based on Access Control List. This mechanism is very useful, but I have to admit, not very easy to dive in the first time you try to use it. Moreover, CakePHP doesn't provide out of the box an interface to configure the rights managed through ACL.
Some monthes ago, I wrote a plugin that aims to be such an interface allowing to manage permissions in my applications.
- Published by alaxos 11/21/10 - 00:00
- 12909 views
- 8 comments
Youtube Helper
As the title suggests this helper will return an embedded Youtube video and/or its thumbnail images.
- Published by cmarie 11/20/10 - 00:00
- 8204 views
- 11 comments
Jquery Dialog Helper
Jquery dialog Helper is a useful helper.It help you to write only native PHP code and get a JQuery dialog box.
- Published by milad.jafary 11/18/10 - 00:00
- 7930 views
- 0 comments
CakePHP 1.3.6 and 1.2.9 released
The CakePHP core team is proud to announce the immediate availability of CakePHP 1.3.6 and 1.2.9. These releases are recommended for all users as they fix a security issue. Since the release CakePHP 1.3.5 less a month ago, there have been over 25 commits[1] and 10 tickets resolved. The 1.2 branch has 20 commits[2] and 15 tickets resolved, since the release of 1.2.8 in August.
- Published by markstory 11/13/10 - 00:00
- 33741 views
- 7 comments
ACO and ACL Management Plugin
There are a couple of these out there already but this is based on the tutorial in the documentation. Leaving ARO Management out because those are created automatically with users and groups.
- Published by jbcrawford 11/12/10 - 00:00
- 9231 views
- 0 comments
HRL - CSS and JS loader with dependencies
# The Hierarchical Resource Loader
## Introduction
This is the Hierarchical Resource Loader or HRL. It is cakePHP3 helper created to help programmers with managing their CSS and JavaScript dependencies. When a file is queued dependencies can be declared. If a file has dependencies it will not be loaded until all of its dependencies are loaded first. Files are identified by keys. These are optional but must be supplied if the file is required by dependent file. Without a key a file cannot be identified as a dependency.
The latest version can be downloaded from [github](https://github.com/RobertWHurst/HRL-for-cakePHP/).
- Published by RobertWHurst 11/12/10 - 00:00
- 6032 views
- 0 comments
HOWTO Setup Eclipse 3.6 to get the most out of CakePHP 1.3 Development
This article explains step-by-step on how to setup your CakePHP dev environment to get the most out of open source tooling.
- Published by rynop 11/11/10 - 00:00
- 20606 views
- 2 comments
fastfoo - cms under cakephp
How install fastfoo under your installations of cakephp
- Published by fastfoo 11/06/10 - 00:00
- 7610 views
- 1 comment
How to create a reusable element with ajax pagination
I've spent a week searching the web, reading (old) articles and debugging code to figure out how to have a self-contained, reusable ajax paginated element.
The examples on the web about pagination work fine BUT do not apply to elements which can be dropped in any view with a simple
$this->element('my/element');
I finally achieved the expected results in an elegant manner, so I thought I should contribute to CakePHP community with this tutorial.
Comments are welcome, as I am still a newbie at CakePHP (and PHP) - my background is ASP.NET and C#. Any improvements on my Markdown syntax are also welcome.
If you like this article, click the **Thumbs Up** icon and **rate it**!
- Published by lucianobargmann 11/03/10 - 00:00
- 8170 views
- 0 comments
Sync ACL acos Alias and View ACLs easily
While following the tutorial at http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application , I found it very frustrating that the AclBehavior didn't set User and Group aliases, nor was there a simple way to view what permissions I had set.
- Published by jtsage 11/01/10 - 00:00
- 6037 views
- 2 comments







Latest Comments