>From what I see, you want to connect users to roles and then roles to
modules and it appears to be access control.

Have a look into access control in the manual. Read, understand, run
some examples and tests.  Then apply it to your project.

Geoff
--
http://lemoncake.wordpress.com

On Jul 24, 9:31 am, rtanz <[EMAIL PROTECTED]> wrote:
> actually the MODULES table has more fields, as can be seen in the db
> table diagram here:www.jpgalea.com/design.jpg
>
>  if i follow your suggestion where would i put the module information
> such as code, year delivered etc? thanks
>
> On Jul 24, 12:24 am, haj <[EMAIL PROTECTED]> wrote:
>
> > I would drop MODULES table which seems meaningless to me and rename
> > MODULES_ROLES_USERS to MODULES instead. Then in MODULES model, define
> > Modules hasMany ROLES and USERS. When adding new module, use
> > generatelist() to make lists for Roles and Users.
>
> > On Jul 23, 11:20 am, rtanz <[EMAIL PROTECTED]> wrote:
>
> > > i have a modules table storing module info:
> > > MODULES
> > > id
> > > name
> > > ....
>
> > > and a roles table storing a number of roles:
> > > ROLES
> > > id
> > > name
>
> > > and a users table storing info about users:
> > > USERS
> > > id
> > > name
> > > ....
>
> > > and a join table storing the links between them,
> > > MODULES_ROLES_USERS
> > > id
> > > module_id
> > > role_id
> > > user_id
>
> > > Now I would like that when I create a new MODULE I will be given the
> > > option to select a USER(dropdown) and his ROLE(dropdown) within that
> > > module. How can i do this and was i correct in making that join table
> > > or should is this functionality done another way in cakephp? thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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