1
Ok im a php coding newbie and im trying to create my own simple module based on trabis dummy module
is there an easy way to let
only admin or certain user to access a certain submenu
i have seen the news module - submenu to submit.php example..but it is complicated...
i have this in xoops_version.php
// Submenus
$modversion['sub'][0]['name'] = 'Director Section';
$modversion['sub'][0]['url'] = "director.php";
$modversion['sub'][1]['name'] = 'Submit Record';
$modversion['sub'][1]['url'] = "admin/add.php";
i tried this and it is not working
// Submenus
$modversion['sub'][0]['name'] = 'Director Section';
$modversion['sub'][0]['url'] = "director.php";
if ($xoops_isadmin) {
$modversion['sub'][1]['name'] = 'Submit Record';
$modversion['sub'][1]['url'] = "admin/add.php";
}
else {
}
help