Lightna Lane mode allows you to render specific blocks from Lightna inside another PHP application. To enable this, after setting up Lightna, you must ensure that the request URL is passed through to the host app.
One way to achieve this is by configuring the entity index to return no routes — in that case, Lightna
won’t attempt to resolve the URL.
You’ll also need to instruct Lightna to bypass routing when no route is found, using:
router.bypass.rule.no_route = bypass
.
Alternatively, you can implement custom bypass logic to control routing behavior more precisely.
Once bypassing is in place, you can trigger Lightna rendering for a specific block using:
blockhtml('#block_id')
.
A more robust and native approach is to integrate Lightna rendering into the host application’s standard rendering flow — for example, in Magento:
<block name="lightna.header" before="main.content"> <arguments> <argument name="lightna_block_id" xsi:type="string">header</argument> </arguments></block>