title: How do cakePHP model functions work?
body: <p>This is the example from the cookbook:</p>
  
  <pre><code>class IngredientsController extends AppController {
  
      public function index() {
          //grab all ingredients and pass it to the view:
          $ingredients = $this-&gt;Ingredient-&gt;find('all');
          $this-&gt;set('ingredients', $ingredients);
      }
  </code></pre>
  
  <p>So it looks like we're using <code>find('all')</code> and returning all of them to the index. I figure we can also create a method called <code>frenchIngredients()</code> that would return all the french ingredients.</p>
  
  <p>My question is do I have to create a separate function for every find condition I want to have for the Controller?</p>
  
  <p>I'm really new to cakePHP, so maybe I just don't understand how this is supposed to work, but the way I'm seeing it, I'm going to have to create large numbers of functions and/or views just to account for changes in find conditions.</p>
  
  <p>Does cakePHP suck that bad or am I missing something? I thought it would make my PHP OOP easier, but really it just seems like a lot of overhead to convert something working into something I have no idea how to work.</p>