Add PHP Page in Bootstrap Offcanvas

I’m not sure if this can be done, or if there is a way to do it.I’m using a Bootstrap function called Offcanvas.
To do a test I put the code that bootstrap gives me in Server Events->Table-Spesific->Add->Page_DataRendering
I added the code that bootstrap gives me and it worked perfectly, what I want to do now is that inside that offcanvas I would like to add a php page that phpmaker generated me.Sincerely I do not know if this can be done, if it is possible I would like very much that they guide me to do it, if not, nothing happens.Regards

You may post your code for more discussion.

This is my code

// Page Data Rendering event
function Page_DataRendering(&$header)
{
    // Example:
    $header = "<button class=\"btn btn-primary\" type=\"button\" data-bs-toggle=\"offcanvas\" data-bs-target=\"#offcanvasRight\" aria-controls=\"offcanvasRight\">Prueba Offcanvas</button>

 <div class=\"offcanvas offcanvas-end\" tabindex=\"-1\" id=\"offcanvasRight\" aria-labelledby=\"offcanvasRightLabel\">
   <div class=\"offcanvas-header\">
     <h5 class=\"offcanvas-title\" id=\"offcanvasRightLabel\">Prueba Offcanvas a la derecha</h5>
     <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"offcanvas\" aria-label=\"Close\"></button>
   </div>
   <div class=\"offcanvas-body\">
     <?php
        include  __DIR__ . \"/pagelist.php\";
     ?>
   </div>
 </div>";
}

What is pagelist.php file? Is it a Custom File or is it a generated List page based on the certain Table/View?

Its a generated List page based on the certain Table/ViewIts not a Custom File

I don’t think you can do that.

Ok, Thank you