Difference between revisions of "How to make part of theme visible only to administrators"
From JReviews Documentation
(Created page with '<source lang="php"> <?php if($this->Access->isAdmin():?> // Everything here will be available only to admins <?php endif;?> </source> Category:JReviews [[Category:Theme…') |
|||
Line 1: | Line 1: | ||
+ | |||
+ | Use this code: | ||
+ | |||
<source lang="php"> | <source lang="php"> | ||
<?php if($this->Access->isAdmin():?> | <?php if($this->Access->isAdmin():?> |
Revision as of 20:35, 4 November 2009
Use this code:
<?php if($this->Access->isAdmin():?> // Everything here will be available only to admins <?php endif;?>