What would be the proper way to set up an array of links based on access levels?
[code=php]
$adminlinks = array(
"User" => "/admin/users",
$func->iif($func->hasAccess(AL_E DIT_CONFIG),"Co nfig" => "/admin/config",""),
"Template" => "/admin/template");
[/code]
[code=php]
$adminlinks = array(
"User" => "/admin/users",
$func->iif($func->hasAccess(AL_E DIT_CONFIG),"Co nfig" => "/admin/config",""),
"Template" => "/admin/template");
[/code]
Comment