Download the PHP package nongbit/codeigniter-twig without Composer
On this page you can find all versions of the php package nongbit/codeigniter-twig. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nongbit/codeigniter-twig
More information about nongbit/codeigniter-twig
Files in nongbit/codeigniter-twig
Download nongbit/codeigniter-twig
More information about nongbit/codeigniter-twig
Files in nongbit/codeigniter-twig
Vendor nongbit
Package codeigniter-twig
Short Description Integrate Twig to CodeIgniter 4
License MIT
Homepage https://github.com/nongbit/codeigniter-twig#readme
Package codeigniter-twig
Short Description Integrate Twig to CodeIgniter 4
License MIT
Homepage https://github.com/nongbit/codeigniter-twig#readme
Keywords twigcodeigniter
Please rate this library. Is it a good library?
Informations about the package codeigniter-twig
Codeigniter Twig
Integrate Twig to CodeIgniter 4.
Setup
Download package using composer.
Open APPPATH/Controllers/BaseController.php
.
Usage
Template
To display template, we can use display()
provided by the trait.
By default, Twig will look for template files inside APPPATH/Views
. To add other locations use addPath()
.
The default file extension is html
but we can change it by creating a configuration file App\Config\Twig.php
.
Global
Inside view:
Filter
Inside view :
Function
Function behaves similarly to a filter.
All versions of codeigniter-twig with dependencies
PHP Build Version
Package Version
The package nongbit/codeigniter-twig contains the following files
Loading the files please wait ....