jaxon-php / jaxon-blade
Jaxon view renderer for the Blade template engine
v3.0.1
2019-12-26 01:20 UTC
Requires
- jaxon-php/jaxon-core: ^3.1
- jenssegers/blade: ^1.2
Provides
This package is auto-updated.
Last update: 2024-12-14 00:14:31 UTC
README
Render Blade templates in Jaxon applications.
Installation
Install this package with Composer.
"require": { "jaxon-php/jaxon-blade": "^3.0" }
Usage
Foreach directory containing Blade templates, add an entry to the app.views
section in the configuration.
'app' => array( 'views' => array( 'demo' => array( 'directory' => '/path/to/demo/views', 'extension' => '.blade.php', 'renderer' => 'blade', ), ), ),
In the application classes, this is how to render a view in this directory.
$this->view()->render('demo::/sub/dir/file');
Read the documentation to learn more about views in Jaxon applications.