Post by JNeuhoff » Thu Oct 25, 2018 1:21 am

Why do we need Twig? They add no new improved functionality, quite to the contrary! See Daniels own notes on this in system/library/template/twig.php:

Code: Select all

	/*
	 * FYI all the Twig lovers out there!
	 * The Twig syntax is good, but the implementation and the available methods is a joke!
	 *
	 * All the Symfony developer has done is create a garbage frame work putting 3rd party scripts into DI containers.
	 * The Twig syntax he ripped off from Jinja and Django templates then did a garbage implementation!
	 *
	 * The fact that this system cache is just compiling php into more php code instead of html is a disgrace!
	 */
Why not using PHP templates? OpenCart is a PHP framework, and PHP already IS a templating system anyway!

MHC Web Design
Override Engine * Integrated VQMod * Unused Images Manager * Instant Option Price Calculator * TrustPilot Reviews * Google Rich Snippets * Google Tag Manager * Export/Import Tool * Template Switcher PHP/Twig


User avatar
Expert Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by thekrotek » Thu Oct 25, 2018 2:15 am

I second this. TWIG is hated by most OC developers, doesn't bring anything good and only makes development more complex. At least it could've been added as an alternative to default TPL.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member
Online

Posts

Joined
Sun Jul 03, 2016 12:24 am


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by agatha65 » Tue Oct 30, 2018 9:40 am

thekrotek wrote:
Thu Oct 25, 2018 2:15 am
TWIG is hated by most OC developers, doesn't bring anything good and only makes development more complex.
+1

Print Version for Product Page and Product Compare Page | Rich Snippets | Facebook Open Graph Meta Tags | Information pages in top menu | Multi-Language Banners, Sliders and Carousels
Image


User avatar
Active Member

Posts

Joined
Fri Mar 16, 2012 10:18 am
Location - Canada, QC

Post by k2tec » Tue Oct 30, 2018 6:58 pm

Why not using PHP templates? OpenCart is a PHP framework, and PHP already IS a templating system anyway!
+1

User avatar
Active Member

Posts

Joined
Mon Apr 12, 2010 8:06 pm

Post by hamrodev » Tue Jun 18, 2019 12:26 am

I agree completely on this.
The usage of twig is - mildly put - a perfect example of overengineering that adds no additional value and was just implemented because symfony....

Newbie

Posts

Joined
Mon Jun 17, 2019 8:11 pm

Post by NikkiMarie » Mon Aug 12, 2019 1:09 am

Greetings,

Hmmm.... would I be wasting my time learning Twig to create my own theme then? Is there a real chance it will be removed from use in future releases of OC?

Many thanks!

Newbie

Posts

Joined
Sat Aug 03, 2019 8:24 am

Post by OSWorX » Mon Aug 12, 2019 3:11 am

NikkiMarie wrote:
Mon Aug 12, 2019 1:09 am
would I be wasting my time learning Twig ..
I would say, in this branche it is never a waste of time to learn new.

NikkiMarie wrote:
Mon Aug 12, 2019 1:09 am
Is there a real chance it will be removed from use in future releases of OC?
No.

Custom Development | Individuelle Entwicklung | Support & Bugfixes

Image Image Image


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by NikkiMarie » Sun Aug 18, 2019 1:04 pm

Very true. Wasting time was a poor choice in wording. Thanks for the reply!

Newbie

Posts

Joined
Sat Aug 03, 2019 8:24 am
Who is online

Users browsing this forum: No registered users and 25 guests