Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Oct 24, 2013
1 parent 7bcbbf9 commit 308e1f6
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 16 deletions.
5 changes: 3 additions & 2 deletions Model/MyModel.php
Expand Up @@ -41,8 +41,9 @@ public function __construct($id = false, $table = null, $ds = null) {
$this->prefixOrderProperty();
}

# get a notice if there is an AppModel instances instead of real Models (in those cases usually a dev error!)
if (defined('HTTP_HOST') && HTTP_HOST && !is_a($this, $this->name) && $this->displayField !== 'id' && $this->useDbConfig !== 'test' && !Configure::read('Core.disableModelInstanceNotice')) {
# Get a notice if there is an AppModel instance instead of a real Model (in those cases usually a dev error!)
if (!is_a($this, $this->name) && $this->displayField !== 'id' && $this->useDbConfig !== 'test'
&& !Configure::read('Core.disableModelInstanceNotice')) {
trigger_error('AppModel instance! Expected: ' . $this->name);
}
}
Expand Down
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -75,7 +75,7 @@ App::uses('GeocoderBehavior', 'Tools.Model/Behavior');
```

Tip: For how to use them, try to find some information in the test cases.
Usage for some larger modules: https://github.com/dereuromark/tools/blob/master/USAGE
A quick reference or some larger modules: [USAGE.md](https://github.com/dereuromark/tools/blob/master/USAGE.md)

## The cool stuff

Expand All @@ -92,6 +92,7 @@ Usage for some larger modules: https://github.com/dereuromark/tools/blob/master/

* Using the Common component's flashMessage() you can have colorful (success, warning, error, ...) flash messages.
They also can stack up (multiple messages per type). This way no message is lost when redirecting twice etc.
* TinyAuth authorization adapter with single and multi-role support - extremely fast and easy to use.
* The Passwordable behavior allows easy to use functionality for frontend and backend.
* Geocodeable, WhoDidIt, Confirmable and Bitmasked behaviors.
* With MyModel you can build subqueries the Cake way.
Expand Down
13 changes: 0 additions & 13 deletions USAGE

This file was deleted.

25 changes: 25 additions & 0 deletions USAGE.md
@@ -0,0 +1,25 @@
# Usage of some larger modules

## TinyAuth
http://www.dereuromark.de/2011/12/18/tinyauth-the-fastest-and-easiest-authorization-for-cake2/

## Tokens
http://www.dereuromark.de/2010/06/25/tools-plugin-part1-codekey

## Contact forms
http://www.dereuromark.de/2011/12/15/tools-plugin-part-2-contact-form/

## Qlogins
http://www.dereuromark.de/2012/02/08/qlogin-quicklogins-fur-cakephp/

## Captchas
http://www.dereuromark.de/2010/08/09/how-to-implement-captchas-properly/

## Geocoding
http://www.dereuromark.de/2012/06/12/geocoding-with-cakephp

## GoogleMaps
http://www.dereuromark.de/2010/12/21/googlemapsv3-cakephp-helper/


for all others, see the inline documentation

0 comments on commit 308e1f6

Please sign in to comment.