Are Counsellor and Coordinator two kind of users of your system?
If it is so, then you are talking about roles here. You can implement
roles using CakePHP's Access Control Lists (ACL).

For more information on Access Control Lists you can check the manual:
http://manual.cakephp.org/chapter/acl


On Mar 4, 5:31 am, chefsmart <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I just started out with cakePHP and am quite impressed by how much can
> be achieved in a short time.
>
> I'm stuck with a design issue and need some guidance. Please.
>
> Let's say I have two models: 1) Counsellor 2) Coordinator. There is a
> third model called Agency. An Agency can only be created by a
> Counsellor or a Coordinator. I need to store information in the
> database about each Agency's creator.
>
> Now if I call my database field agencies.createdby, how would I go
> about tying it up with cakePHP's convention? How would I go about
> determining whether the creator was a Counsellor or a Coordinator?
> Should I have two fields (coordinator_id, and counsellor_id) in the
> database in place of one createdby field?
>
> Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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