brad
August 25, 2026, 4:05pm
1
Hi gang, what is the proper procedure for setting up a partial with the new php routing system?
Do I add it to a page and then convert to partial or do I create it as a stand alone partial.
In this case it's a login form I want to add to different pages.
Thanks
brad
August 25, 2026, 4:26pm
2
Ok, I think I figured out how to create a basic partial. But I can't for the life of me figure out how to add it to a content page. This shouldn't be this hard. I love the new PHP routing set up but can't seem to add partials.
brad
August 25, 2026, 4:44pm
3
Changing this to a bug for PHP routing. Can't add partials. The documentation shows you should have a select drop down to pick your partial.
But I don't get that drop down:
Quy
August 25, 2026, 5:37pm
4
Partial step is for NodeJS as seen in the generated code:
<%- await include('', Object.assign({}, locals)) %>
Use Server Side Include step for PHP.
brad
August 25, 2026, 5:46pm
5
Well, that is what I tried at first before going to the documentation. It inserts the code:
<?php include '/partials/login.php'; ?>
But it doesn't show up on the page. AND with debug on and previewing in browser I get
{"code":0,"file":"\/Users\/bradlawryk\/Documents\/2026_ALIGN_assessment\/www\/assessment.php","line":25,"message":"include(\/partials\/login.php): Failed to open stream: No such file or directory","trace":"#0 \/Users\/bradlawryk\/Documents\/2026_ALIGN_assessment\/www\/assessment.php(25): exception_error_handler(2, 'include(\/partia...', '\/Users\/bradlawr...', 25)\n#1 \/Users\/bradlawryk\/Documents\/2026_ALIGN_assessment\/www\/assessment.php(25): include()\n#2 \/Users\/bradlawryk\/Documents\/2026_ALIGN_assessment\/www\/dmxConnectLib\/templateFunctions.php(415): include('\/Users\/bradlawr...')\n#3 \/Users\/bradlawryk\/Documents\/2026_ALIGN_assessment\/www\/layouts\/assessment.php(30): dmxRouteContent()\n#4 \/Users\/bradlawryk\/Documents\/2026_ALIGN_assessment\/www\/dmxConnectLib\/loader.php(45): include('\/Users\/bradlawr...')\n#5 \/Applications\/Wappler.app\/Contents\/Resources\/app\/Shared\/DMXzone\/dmxAppCreator\/UI\/lib\/htaccess_router.php(205): require_once('\/Users\/bradlawr...')\n#6 {main}"}
Quy
August 25, 2026, 5:52pm
6
Try making it relative:
<?php include '../partials/login.php'; ?>
Quy
August 25, 2026, 5:53pm
7
PS: The Partial step should be hidden on PHP projects to avoid the confusion.
brad
August 25, 2026, 5:59pm
8
Thank @Quy . Changing the path fixed it. It now shows up in browser but does not show up in the design view for some reason.