Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Implementation of Twig template system for OpenCart 2.x

License

NotificationsYou must be signed in to change notification settings

BurdaPraha/oc_twig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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.

  1. add constantdefine('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!

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp