1

Im trying to write component admin side and i need to add user creation. Dont want to duplicate existing codes just add a link. I know how to add a task but not a simple link to that toolbar.

Thx for help.

1 Answers1

2

If you are just wanting a button that opens the new user screen you can try this in your component:

 $bar = JToolBar::getInstance('toolbar');
 $bar->appendButton('Link', 'users', 'New user','index.php?option=com_users&task=user.add');

You will need to add this to your view.html.php file wherever you're creating your toolbar.

Is that what you need?

Adam Rifat
  • 573
  • 2
  • 11