library twigulence
Twig Integration for the Opulence PHP 7.0 Framework
exts/twigulence
Twig Integration for the Opulence PHP 7.0 Framework
- Thursday, November 17, 2016
- by exts
- Repository
- 1 Watchers
- 0 Stars
- 7 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
About
Twigulence is a bootstrapper for the Opulence PHP 7.0 Framework., (*1)
Installation
composer require exts/twigulence --no-dev
- If you're running a fresh
Opulence/Project then I recommend heading into your /PROJECT_NAME/config/http folder and find the bootstrappers.php file
- Remove the
ViewFunctionsBootstrapper::class and ViewBootstrapper::class from this file and replace those with our Bootstrapper class Twigulence\Bootstrapper::class
- To test add a twig file to your
resources/views folder then in your controller call $this->viewFactory->createView with the file name excluding the file extension and you can use the setVars to set custom values to the view object and it'll pass that data to the twig template.
For now I hope this helps you get twig working with Opulence, (*2)
TODO
- Working on the ability to make it easy to customize the bootstrapper, for now your best bet is to extend the Bootstrapper class and overwrite the
getTwigInstance method.
dev-master
9999999-dev
Twig Integration for the Opulence PHP 7.0 Framework
Sources
Download
MIT
The Requires
The Development Requires
by
Lamonte Harris
twigulence
twig opulence integration
twig integration
opulence twig compiler
opulence
1.0.0
1.0.0.0
Twig Integration for the Opulence PHP 7.0 Framework
Sources
Download
MIT
The Requires
The Development Requires
by
Lamonte Harris
twigulence
twig opulence integration
twig integration
opulence twig compiler
opulence