You can use includes within any view relative to the root views folder.
include('sidebar', ['menu' => ['Home', 'About', 'Contact']]) method passes a menu variable to the sidebar.php view.
Inside sidebar.php, the $menu array will be accessible.
::
includeIf() which will only include the view if conditionals are meet: