Hello, my goal is to create the same style list that is on the admin view on the index page, which I have done. Basically, I got rid of the admin (manage) page and am just using an index page. However, what I want to do is have a version that has the edit/delete buttons in the right hand column and one that doesn't. If you are not logged in, you can see the list of items and view each one in full by clicking the magnifying glass. If you are logged in, you can also delete or edit each item. How would I go about doing this? Here is the code that creates the list:
?php $this->widget('zii.widgets.grid.CGridView', array(
I can of course get rid of the array('class'=>'...'), but that also gets rid of the magnifying glass. I also don't really know how to check if a user is logged in. Sorry, I'm a Yii noob.