Skip to content

pepa-linha/nette-inertia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nette Inertia

The Nette adapter for Inertia.js.

Installation

composer require pepa-linha/nette-inertia

Usage

Extends your presenter

class BasePresenter extends InertiaPresenter

and then use $this->inertia(...) method in your presenters to send page object response.

By default Inertia page component name is the same like presenter name. You can change it by override getInertiaComponentName method.

Set the default state of the Inertia application with $inertiaPageObject in template:

<div id="app" data-page='{$inertiaPageObject|noescape}'></div>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages