Hi


On 24 March 2011 01:37, [email protected] <[email protected]>wrote:

> Hi let's say I have created a user and admin panel so how can I come about
> creating another space for clients in the admin panel? Do I have to do
> another file like client_controller and a clients.ctp and client.php?
>
>

I also believe you should read the book and cover the basics before
attempting an app, definitely complete the blog tutorial as well - you don't
need to read the whole book, it would be an advantage, but you can miss
parts out which aren't relevant to you (i.e. You may have no interest in
Tree's or ACL)

You don't need to create a controller for clients or admins, only users. As
a newbie a good while back and made controllers to handle things like this,
you will find you run into lots of problems when trying to deal with other
controllers, the controller itself may become very large.

For Administration research prefixes.

In any controller create "function admin_action() { ... }" instead of
function action() {   } to make it a part of the admin side of things.

You can also take advantage of ACL

Have a users controller and users table, then using ACL (and possibly a
table such as user_groups), you can give users different levels of access:

1. User
2. Client
3. Admin

Prefixes: http://book.cakephp.org/view/950/Prefix-Routing
ACL: http://book.cakephp.org/view/1242/Access-Control-Lists


-- 
Kind Regards
 Stephen

 http://www.ninjacodermonkey.co.uk

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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