Slide 12
Slide 12 text
How to use Inertia.js to create an SPA
with CakePHP and Vue
InertiaHelper
https://github.com/ACampanario/Spa-CRUD-with-Vue-and-CakePHP
Next, we create a helper to render a div tag in which we will place
variables that our CakePHP will pass as properties to the
component that Vue will generate.
We put this helper on layout.php and replace
fetch('content') ?>
with
Inertia->make($page, 'app', ''); ?>
Also, we need to add app.js in the HEAD tag
Tag v0.1