views:

23

answers:

1

Possible Duplicate:
how should I render views when users habtm roles. cake

hi i got users habtm roles the thing is when i login i dont know how to separate or mix the views for users that have more than one role...

any help?

how would you manage this issue? by letting the user select which role he wants to play? or mixing the views?

dont be cocky... express yourself!

A: 

You could have a seperate directory for each level of user.

Use the following command to set the view path

    $this->viewPath = 'users' . DS. $privLevel

so then you can make a have a different copy of your view files in each of a bunch of directories

/users/1/view.ctp
/users/2/view.ctp
/users/3/view.ctp
/users/4/view.ctp
...
paullb