On Jan 28, 8:20 pm, OldWest <[email protected]> wrote: > Basically all I want to do is, instead of creating 2 unique views for the > admin and user interface, I only want to display the CRUD controls next to > the items when the admin IS logged in. > > Now the way I am currently doing it is checking the Auth session status and > echoing out the controller links IF the Auth session has be activated.. > > But I wanted to know if there are any other (maybe better) approaches anyone > might like to suggest.
use the same view for both, and load a <role>.js file as approprite. here's an excerpt from an example "admin".js http://bin.cakephp.org/view/1788451306 hth, AD -- 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
