adxio/twig-hmvc

Twig and HMVC Integration for Code Igniter 3.x

v2.0.3 2020-02-08 13:15 UTC

This package is auto-updated.

Last update: 2024-11-09 00:15:14 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

Twig and HMVC Integration for Code Igniter 3.1.10

Server Requirements

PHP version 7 or newer. Twig 2.6.2 or later.

Folder Structure

root/
└── application/
    └── module/
        └── welcome/
            └── controllers
                └── Welcome.php
            └── models
                └── Model.php
            └── views
                └── welcome.twig

Installation

With Composer

$ cd /to/path/root/codeigniter
$ composer require adxio/twig-hmvc

For installation following this command

$ php vendor/adxio/twig-hmvc/install.php

And then you must change owner of folder cache

$ sudo chown www-data:www-data application/cache
  • You must run at CodeIgniter root folder

Done and Happy coding