There might be a smart way, but if not, you could get the name of the group the person belongs to and create a variable such as $groupName + '_leftbar', then echo $this->element($elementName);
Jeremy Burns [email protected] On 18 May 2010, at 13:10, Ernesto wrote: > Hello. > > i have 3 elements "standard_leftbar", "admin_leftbar" and > "customer_leftbar". > > is there any smart way to render one of those elements in my view, > based on User's group_id, provided by the Auth component? > > sry for my bad english > > bye > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] For more options, visit this group at > http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
