is sombody here correct me here please
how can i do this if a users group is admin

i did it with session but this dosent work any other way

<?php
if ($session->read('Auth.User.group') == 'Admin')
{
echo'<div class="author">';
}else{
echo'<div class="nonauthor">;
}?>


<?php
if($this->$comment['User'[['Group']['admin']){
echo'<div class="author">';
echo $comment['Comment']['comment'];
echo'</div >';



}else{


echo'<div class="non-author">
echo $comment['Comment']['comment'];
echo'</div>';


}


?>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to