in cookbook there has something like below。i wonder how to and
where define association between model and it's main model?   main
model mean ??

---------------------------------
Associated models are available through the main model. In the
following example, Recipe has an association with the Ingredient
model.


1.  <?php
   2. class RecipeController extends AppController {
   3. function index() {
   4. $ingredients = $this->Recipe->Ingredient->find('all');
   5. $this->set('ingredients', $ingredients);
   6. }
   7. }
   8. ?>
-------------------------
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to