FAQ

Show new features to admin only

You are able to launch new features to ADMIN only







# 1 > Add code to only view with admins
You can launch new updates and only have admin see this before the public see's t

<?php if (isset($isAdmin)): ?>
Put stuff here that only admins will see
<?php endif; ?>

Then in your controller add in a condition so this will only appear when something is true. And that will then display the content in the view above (most software it is built it automatically)

$this->set('isAdmin', true);

OPPOSITE: You can also only display content when the variable is NOT set: So when you do not add the variable to the controller you will see, when you have the variable the content will NOT display

<?php if (!isset($isAdmin)): ?>
Put stuff here that only admins will see
<?php endif; ?>