programming faqs interview questions tech technical educational freshers guide preparation interviews hr telephonic
try another color:
try another fontsize: 60% 70% 80% 90%
Programming FAQs

How to check user Credentials in symfony

this example is to show

this example is to show links to only administrator

In action

if($this->getUser()->hasCredential('Administrator')) {
$this->show = true;
} else {
$this->show =false;
}

In View

if($show) {
// show links
} else
{
/dont show links
}