If I get it right you want Admin section and Client section?
If so:
If you try to use ACL based app (http://book.cakephp.org/view/641/
Simple-Acl-controlled-Application),
your create two tables: users and groups (plus rest from ACL component
- http://book.cakephp.org/view/641/Simple-Acl-controlle
In the beforeFilter in each controller you can specify
$this->Auth->userModel = "MODEL_NAME";
that way you can use two different tables separately.
On Mon, Nov 30, 2009 at 6:39 PM, Jeff Deroshia wrote:
> I've had to do something similar with users in different scopes being in
> completely diff
I've had to do something similar with users in different scopes being in
completely different tables.
I handled it by first making sure all admin actions had admin => 1 in their
urls.
Then in the app_controller's beforeFilter, I checked for an admin action.
If found, I initialized the Auth compon
Hi Petr,
> is any idea. How use AUTH for two admin sections?
> First: Admin section, when user log. can add new products, and other
> informations.
> Second: Client admin: user log. can shopping, do order, check
> order
>
> I must use ACL or role in user and how i can do, when client login can
Hi,
is any idea. How use AUTH for two admin sections?
First: Admin section, when user log. can add new products, and other
informations.
Second: Client admin: user log. can shopping, do order, check
order
I must use ACL or role in user and how i can do, when client login can
view only views fo