On the same topic, I'd like to hear some suggestions on Cake best
pratices to build somethinig like a community website. Stuff like
 -  Should I use Elements to render the different 'boxes' or should I
use the requestAction to get the stuff
 -  How to use 'Pages' in cake ? just pu them in the Pages folder ?
How to call some elements within those pages ? Or i must use
controllers to everything ? I really coudn't find anything on pages on
the manual/api/wiki

  Any suggestions ? Examples ?
 ( the only reference I found:  https://trac.cakephp.org/wiki/Cake/About/Size )

 Thanks!
 spark



On 5/30/06, nate <[EMAIL PROTECTED]> wrote:
>
> Okay, this is completely off-the-cuff, but it should at least get you
> started:
>
> class User extends AppModel {
>     var $hasAndBelongsToMany = array('RelatedUser' => array(
>         'className' => 'User',
>         'foreignKey' => 'user_id',
>         'associationForeignKey' => 'related_user_id',
>         'joinTable' => 'related_users'
>     ));
> }
>
> This assumes you have a join table called related_users, which has 2
> columns: user_id and related_user_id.
>
> Hope that helps.
>
>
> >
>


-- 
[web] http://synapsisdi.com.br
[livesets] http://djspark.com.br

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to