CakePHP 2 fork that supports PHP 8
Find a file
dogmatic69 00abe27ef8 Breaking out the find so that it can be easily overloaded for caching
Before this commit you have to do some hacks to cache model finds easily. When using
custom find methods like `find('foo')` => `_findFoo(...)` it is common for the
method to adjust the query params.

Trying to cache a query using a hash of the query params :

	function find($type, $query) {
		$query = $this->_beforeFind($query);
		$cacheKey = $type . '_' . md5(selialize($query));

		$cache = Cache::read($cachKey, 'my_cache');
		if ($cacheKey !== false) {
			return $cache;
		}

		$results = $this->_afterFind($type, $query);
		Cache::write($cacheKey, $results, 'my_cache');

		return $results;
	}

Before this commit you either have to completely overload find and rewrite it in the AppModel or call
the before to get the modified `$query` and let cake run the before again.
2013-02-09 16:20:46 +00:00
app Updated .gitignore, synced app & skel 2013-02-08 15:54:36 +01:00
lib/Cake Breaking out the find so that it can be easily overloaded for caching 2013-02-09 16:20:46 +00:00
plugins allowing install/cake-wide plugins 2009-08-02 15:01:15 -07:00
vendors we still want the vendors folder - creating empty file to ensure the 2011-03-12 20:11:33 +01:00
.editorconfig Add .editorconfig file. 2012-12-01 22:13:01 -08:00
.gitignore Updated .gitignore, synced app & skel 2013-02-08 15:54:36 +01:00
.htaccess Merging fixes into 1.x.x.x branched code: 2006-05-26 05:29:17 +00:00
.travis.yml phpcs violations will now fail travis builds 2012-12-21 16:06:06 +01:00
build.properties Fix help & default properties file. 2013-02-03 13:05:55 -05:00
build.xml Fix help & default properties file. 2013-02-03 13:05:55 -05:00
index.php Added extra line for referencing license file for copyright 2013-02-08 21:22:51 +09:00
README.md Travis status going in... 2012-08-30 12:01:24 +10:00

CakePHP

CakePHP

CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Active Record, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility.

CakePHP - The rapid development PHP framework

Cookbook - THE Cake user documentation; start learning here!

Plugins - A repository of extensions to the framework

The Bakery - Tips, tutorials and articles

API - A reference to Cake's classes

CakePHP TV - Screen casts from events and video tutorials

The Cake Software Foundation - promoting development related to CakePHP

Get Support!

Our Google Group - community mailing list and forum

#cakephp on irc.freenode.net - Come chat with us, we have cake.

Q & A - Ask questions here, all questions welcome

Lighthouse - Got issues? Please tell us!

Bake Status

Cake Power