Twig Manager (add .twig support for your Opencart 2.x)

Twig Manager (add .twig support for your Opencart 2.x)




Twig is a powerful theme engine and is implemented in Opencart v3.x This means you have to create two different extensions to work on OC2.x and OC3.x or do you? We have created Twig manager so that you could develop your extensions in twig and then port them to OC2.x. Focus on development, not compatibility.


How it works

  1. Install twig manager via extension installer
  2. Refresh modification cache
  3. Now you can develop your view files in .twig



Q&A

Q. How is the twig support implemented?
A. There is a small ocmod file that adds 2 lines of code to your system/engine/loader.php file. It checks if there is a twig file available for the rout and passes that file through the twig compiler. If it doesn't find a twig file, it falls back to .tpl.

Q. When I uninstalled twig manager, it broke my site. I see a 500 error!
A. Just clear the modification cache via FTP at system/storage/modification - delete all files. This happens when you delete the code but not the modification. In the latest versions, we added a check to avoid this error, in case such a delete happens.

Q. Can I use this in my development and sell my extensions with this module?
A. Absolutely. You are free to use this extension as you please. You can create and sell extensions using twig manager.

Q. Is support included?
A. Yes, We always help our users. Visit https://dreamvention.ee/support













Download
  • Developed by OpenCart Partner
  • Documentation Included

Rating

Compatibility
2.3.0.0, 2.3.0.1, 2.3.0.2, 3.0.3.0, 3.0.3.1, 3.0.3.2, 3.0.3.3, 3.0.3.5, 3.0.3.6, 3.0.3.7, 3.0.3.8, 2.0.0.0, 2.0.1.0, 2.0.1.1, 2.0.2.0, 2.0.3.1, 2.1.0.1, 2.1.0.2, 2.2.0.0, 2.3.0.0, 2.3.0.1, 2.3.0.2

Last Update
7 Sep 2021

Created
12 Feb 2017
2830 Downloads
2 Comments
Dreamvention
Dreamvention
Member since: 16 Jan 2012

View all extensions Get Support