Login function and routes

2011-08-09 Thread nOLL
Hi,

I have a project that required 3 group which are admin, agents and
users. These group will using only one login page. In login page there
are username,password and 2 radio button which are members(admin and
agents) and user. After login, admin could view fully CMS and
dashboard, agents could view only certain part of CMS and dashboard
while users only could view the dashboard.

So, what is the best way to implement it?

Thanks.

-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Login function and routes

2011-08-09 Thread Sam Sherlock
You don't need the radio buttons at all.

http://cakephp.1045679.n5.nabble.com/CakeDC-Users-Plugin-redirect-based-on-role-td3410081.html(see
sam bernards comments)
http://www.packtpub.com/article/cakephp-authentication-setup-application(roles
are mentioned later on)


 - S




On 9 August 2011 17:29, nOLL hasnolm...@gmail.com wrote:

 Hi,

 I have a project that required 3 group which are admin, agents and
 users. These group will using only one login page. In login page there
 are username,password and 2 radio button which are members(admin and
 agents) and user. After login, admin could view fully CMS and
 dashboard, agents could view only certain part of CMS and dashboard
 while users only could view the dashboard.

 So, what is the best way to implement it?

 Thanks.

 --
 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
 cake-php+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php


-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Login function and routes

2011-08-09 Thread Mohd Hasnol
Thanks Sam.

On Wed, Aug 10, 2011 at 12:53 AM, Sam Sherlock sam.sherl...@gmail.comwrote:

 You don't need the radio buttons at all.


 http://cakephp.1045679.n5.nabble.com/CakeDC-Users-Plugin-redirect-based-on-role-td3410081.html(see
  sam bernards comments)
 http://www.packtpub.com/article/cakephp-authentication-setup-application(roles
  are mentioned later on)


  - S





 On 9 August 2011 17:29, nOLL hasnolm...@gmail.com wrote:

 Hi,

 I have a project that required 3 group which are admin, agents and
 users. These group will using only one login page. In login page there
 are username,password and 2 radio button which are members(admin and
 agents) and user. After login, admin could view fully CMS and
 dashboard, agents could view only certain part of CMS and dashboard
 while users only could view the dashboard.

 So, what is the best way to implement it?

 Thanks.

 --
 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
 cake-php+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php


  --
 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
 cake-php+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php


-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php