set('view', 'edit'); // render the component view echo JComponentHelper::renderComponent('com_users'); ?>This example shows how to render a specific component view (in this case the "edit" view of the com_users component) using the renderComponent() method. Package library: Joomla\CMS\Component\ComponentHelper