Assuming the name of your component is com_mycomponent, to display a layout from /components/com_mycomponent/layouts/something/displaysomething.php, use the following:
To override the file in your template, copy it to your template directory html/layouts/com_mycomponent/something/displaysomething.php or you can use the Create Overrides feature in the admin.
Code:
$displayData = []$layout = new FileLayout('something', null, array('component' => 'com_mycomponent'));echo $layout->sublayout('displaysomething', $displayData);
Statistics: Posted by pinkshirt — Thu Feb 01, 2024 12:43 am