I have this code.
->add(Lang::__('users'), 'javascript:void(0)', Menu::factory()
->add(Lang::__('users'), ACCESS_ADMIN.'/users/index', Menu::factory()
->add(Lang::__('adduser'), ACCESS_ADMIN.'/users/add_user'))
->add(Lang::__('usergroups'), ACCESS_ADMIN.'/users/groups', Menu::factory()
->add(Lang::__('addusergroup'), ACCESS_ADMIN.'/users/add_group')))
I test this:
((Hooks::Exist('Blog') == true) ?
->add(Lang::__('users'), 'javascript:void(0)', Menu::factory()
->add(Lang::__('users'), ACCESS_ADMIN.'/users/index', Menu::factory()
->add(Lang::__('adduser'), ACCESS_ADMIN.'/users/add_user'))
->add(Lang::__('usergroups'), ACCESS_ADMIN.'/users/groups', Menu::factory()
->add(Lang::__('addusergroup'), ACCESS_ADMIN.'/users/add_group')))
: ''),
but a have an error unexpected '('. How i add an if to my code...??? Thanks in advance people.
Aucun commentaire:
Enregistrer un commentaire