2017 © Pedro Peláez
 

library oc_twig

Implementation of Twig template system for OpenCart 2.x

image

burdapraha/oc_twig

Implementation of Twig template system for OpenCart 2.x

  • Tuesday, May 9, 2017
  • by landsman
  • Repository
  • 1 Watchers
  • 2 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Twig template system for Opencart 2.x

Because default template system sux. Inspired by existing but deprecated solution: vanderson139/opencart-twig - thanks buddy!, (*1)

Installation

  1. composer require burdapraha/oc_twig master-dev
  2. composer require burdapraha/oc_twig dev-master
  3. Add this code to your composer.json project file:
    "scripts": {
        "post-install-cmd": [
            "php -r \"copy('vendor/burdapraha/oc_twig/vqmod/xml/twig.xml', 'upload/vqmod/xml/twig.xml');\""
        ],
        "post-update-cmd": [
            "php -r \"copy('vendor/burdapraha/oc_twig/vqmod/xml/twig.xml', 'upload/vqmod/xml/twig.xml');\""
        ]
    } 

It will move vqmod xml file to correct folder. If you are using another folder than "upload" for your document root, change these commands., (*2)

  1. add constant define('TWIG_CACHE', true); to your config.php, /admin/config.php
  2. optionally you can add row to your .gitignore file with path to tracy.xml (example: upload/vqmod/xml/twig.xml)
  3. celebrate!

The Versions

09/05 2017

dev-dev

dev-dev http://burda.cz/cs/kariera/volna-mista#tester-koder

Implementation of Twig template system for OpenCart 2.x

  Sources   Download

MIT

The Requires

 

twig opencart template-system

02/05 2017

dev-master

9999999-dev http://burda.cz/cs/kariera/volna-mista#tester-koder

Implementation of Twig template system for OpenCart 2.x

  Sources   Download

MIT

The Requires

 

twig opencart template-system