On Jun 6, 11:42 am, AmityWeb <[email protected]>
wrote:
> Can you use the admin route but keep one view and just have some functions
> to display the admin part of the user is admin?

You can set a specific view file using render() in the controller:

$this->render(’view_file_name’);

You could also use logic in the view to alter the view depending on
whether the user is admin.

This said, I didn't realise you were considering having admin
functions that are so closely similar to non-admin functions.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to