Difference between revisions of "How to make part of theme visible only to registered users"
From JReviews Documentation
(Created page with 'Use this code in the theme files: <source lang="php"> <?php if($this->_user->id == 0):?> Register to View This Content <?php else:?> Content shown to registered users <?php …') |
|||
Line 2: | Line 2: | ||
<source lang="php"> | <source lang="php"> | ||
− | <?php if($this->_user->id == 0):?> | + | <?php if($this->Access->_user->id == 0):?> |
Register to View This Content | Register to View This Content |
Revision as of 10:51, 6 August 2010
Use this code in the theme files:
<?php if($this->Access->_user->id == 0):?> Register to View This Content <?php else:?> Content shown to registered users <?php endif;?>