If you will be using othAuth, you can just add something like this to
your default view:

Welcome, <?php echo $othAuth->user('firstname')."
".$othAuth->user('lastname'); ?>!

In this way, you only have to include that line of code once and it
will be shown in all pages.

Likewise, you can set your own customized menu per user level by adding
something like this (again, in your default view):

<?php
$group = $othAuth->user('group_id');
$userid = $othAuth->user('id');

if ($group == 1) {
  echo "Admin";
  // place set of admin menus here
} elseif ($group == 2) {
  echo "Manager";
  // place set of manager menus here
} elseif ($group == 3) {
  echo "Designer";
  // place set of designer menus here
} elseif ($group == 4) {
  echo "Writer";
  // place set of writer menus here
 }
 ?>

Regards,
Reine


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to