<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>vendors/find_app_model.php</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -5,6 +5,9 @@
  * http://github.com/mcurry/find
  * http://www.pseudocoder.com/archives/2008/10/24/cakephp-custom-find-queriescakephp-custom-find-types/
  *
+ * Thanks to Daniel Salazar for the inspiration on pagination support
+ * http://code621.com/content/10/easy-pagination-using-matt-curry-s-custom-find-types
+ *
  * @author      Matt Curry &lt;matt@pseudocoder.com&gt;
  * @license     MIT
  *
@@ -17,7 +20,7 @@ A CakePHP plugin that allows for creating custom find types by simply adding a n
 1) Download the plugin to /app/plugin/find
 
 2) Include the FindAppModel in your app_model.php
-App::import('Model', 'Find.app_model');
+App::import('Vendor', 'Find.find_app_model');
 
 3) Have your AppModel extend FindAppModel
 
@@ -28,4 +31,14 @@ $this-&gt;Model-&gt;find('custom');
 2) In your model:
 function __findCustom($options) {
   //do find here
-}
\ No newline at end of file
+}
+
+/* How To Paginate */
+This is pretty simple thanks Daniel Salazar (http://code621.com/content/10/easy-pagination-using-matt-curry-s-custom-find-types)
+1) Add &quot;paginate&quot; =&gt; true to the $options array will return the $query array, which is suitable for using as your controllers $paginate parameter.  
+   You probably want to merge that with the default controller pagination settings
+   $this-&gt;paginate = am($this-&gt;paginate, $this-&gt;Post-&gt;find('published', array('paginate' =&gt; true)));
+   $this-&gt;set('posts', $this-&gt;paginate());
+
+/* Why This Is A Vendor, Not A Model */
+When doing App::import on a model Cake checks that the AppModel class already exists, otherwise it tries to import.  Since the AppModel is depended on the FindAppModel, it won't exist and will try to be included, leading to a infinite loop.
\ No newline at end of file</diff>
      <filename>README</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>find_app_model.php</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>c73e55c50ab98f1ca0e5a806d6dd45adcc4d38bd</id>
    </parent>
  </parents>
  <author>
    <name>Matt Curry</name>
    <email>matt@pseudocoder.com</email>
  </author>
  <url>http://github.com/mcurry/find/commit/4dfd2ad3e0165ec45663d93aa5e1f79d6dd2f475</url>
  <id>4dfd2ad3e0165ec45663d93aa5e1f79d6dd2f475</id>
  <committed-date>2009-06-05T19:42:28-07:00</committed-date>
  <authored-date>2009-06-05T19:42:28-07:00</authored-date>
  <message>added pagination support</message>
  <tree>20af9c5d9e9c5b3872b3494ca27cb6775f3a5bea</tree>
  <committer>
    <name>Matt Curry</name>
    <email>matt@pseudocoder.com</email>
  </committer>
</commit>
