Post by JNeuhoff » Thu Jun 29, 2017 11:48 am

Actually, creating twig-templates is harder, and for Opencart offers no major advantages.
It's easy enough to add support for the PHP template engine to the OC frontend.

MHC Web Design
Override Engine * Integrated VQMod * Multilingual SEO * Instant Option Price Calculator * TrustPilot Reviews * Download Options * Free Download Buttons * Export/Import Tool * Template Switcher PHP/Twig


User avatar
Expert Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by ovi » Thu Jun 29, 2017 5:25 pm

JNeuhoff wrote:
Thu Jun 29, 2017 11:48 am
Actually, creating twig-templates is harder, and for Opencart offers no major advantages.
It's easy enough to add support for the PHP template engine to the OC frontend.
It's not harder to create twig templates (you just have to get used to with twig), but I agree that twig doesn't offer any advantages for Opencart.

If anybody knows any real advantages of twig for OC please post them here, because IMO twig is not suitable for OC, because most extensions do changes in templates and now they must support 2 different versions: one for tpl (OC 1.5.x and OC 2.x) and the other for twig (OC 3.x +). And I still believe, based on the few tests I made, that twig slows down OC.
Last edited by ovi on Thu Jun 29, 2017 6:35 pm, edited 1 time in total.

ovi
Newbie

Posts

Joined
Sun Nov 09, 2014 12:31 am

Post by ashwani_multi » Thu Jun 29, 2017 5:55 pm

i m converting my all module 3.x found that much slower any suggestion

Opencart Quick checkout
View All modules
Any opencart issue contact me at support@opencartextensions.in

Thank you


User avatar
New member

Posts

Joined
Tue Dec 09, 2014 2:40 pm
Location - Ludhiana,Punjab,India

Post by DigitCart » Thu Jul 06, 2017 3:57 pm

Daniel wrote:
Fri Mar 03, 2017 2:04 pm
3. All files are only allowed to be written in extension folders, except templates which of course go under the template folder.
artcore wrote:
Mon Jun 26, 2017 6:54 pm
$allowed = array(
'admin/controller/extension/',
'admin/language/',
'admin/model/extension/',
'admin/view/image/',
'admin/view/javascript/',
'admin/view/stylesheet/',
'admin/view/template/extension/',
'catalog/controller/extension/',
'catalog/language/',
'catalog/model/extension/',
'catalog/view/javascript/',
'catalog/view/theme/',
'system/config/',
'system/library/',
'image/catalog/'
);
I am confused. Can we use the system/library directory?

My Extensions / DigitCart


User avatar
New member
Online

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by OpenCart Addons » Thu Jul 06, 2017 9:04 pm

DigitCart wrote:
Thu Jul 06, 2017 3:57 pm
I am confused. Can we use the system/library directory?
Yes, you can add extension files to system/library/

The OpenCart wiki has been updated to show what directories you're able to add extension files to.


Regards,
Joel.

Image
Canada's Leading Expert In OpenCart Development & Certified OpenCart Development Partner Image


User avatar
Active Member

Posts

Joined
Thu Nov 24, 2011 10:51 am
Location - Canada

Post by ovi » Thu Jul 13, 2017 11:33 pm

Daniel wrote:
Fri Mar 03, 2017 2:04 pm
1. You are not allowed to modify any DB tables. If you need to store any data for your extension you need to create a new table and use joins.
Are we allowed to create indexes or the restrictions is for columns only?

ovi
Newbie

Posts

Joined
Sun Nov 09, 2014 12:31 am

Post by uksitebuilder » Fri Jul 14, 2017 12:23 am

You can of course do anything you like with the tables you create.

ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by ovi » Fri Jul 14, 2017 2:52 am

ovi wrote:
Thu Jul 13, 2017 11:33 pm
Daniel wrote:
Fri Mar 03, 2017 2:04 pm
1. You are not allowed to modify any DB tables. If you need to store any data for your extension you need to create a new table and use joins.
Are we allowed to create indexes or the restrictions is for columns only?
What I meant is: Are we allowed to create indexes on Opencart's default tables?

ovi
Newbie

Posts

Joined
Sun Nov 09, 2014 12:31 am

Post by uksitebuilder » Fri Jul 14, 2017 1:30 pm

That would be modifying them, so I would say no, but it is a grey area.

If you believe there are tables that should be indexed that aren't currently indexed, you should probably put in a pull request at github for changes to the install sql

ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by JNeuhoff » Mon Jul 31, 2017 7:14 pm

Daniel wrote:
Fri Mar 03, 2017 2:04 pm
3. All files are only allowed to be written in extension folders, except templates which of course go under the template folder.
This approach has the following subtle issue which should be resolved:

Assuming I install 3 different module extensions via the admin backend at

Extensions > Installer > Upload

where each module extension creates the same folder (highlighted in bold):
  1. admin/model/extension/module/my-module-1.php
  2. admin/model/extension/module/my-module-2.php
  3. admin/model/extension/module/my-module-3.php
If I then uninstall the first extension module via

Extensions > Installer > Uninstall

it will then remove the folder module
  1. admin/model/extension/module
leaving the 2nd and 3rd extension with a missing folder and its file. See also this github entry.

MHC Web Design
Override Engine * Integrated VQMod * Multilingual SEO * Instant Option Price Calculator * TrustPilot Reviews * Download Options * Free Download Buttons * Export/Import Tool * Template Switcher PHP/Twig


User avatar
Expert Member

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: No registered users and 7 guests