August 2, 2010

zencart and ‘require’

Tags: , , ,
Filed under: ZenMagick — DerManoMann @ 10:57 am

I think it has been quite some time that I complained about zen-cart, so I feel entitled to have another go: aaaaaaaaaaaahhhhhhhhh!

Actually, it’s not that bad, but I really wonder why all zen cart code uses require rather than require_once. Sure, there might be some performance issue (although I don’t think that really matters), but really: why??

Every time some custom code wants to use zencart classes that haven’t been loaded yet but will be later things screw up. So, the alternative is to wrap all classes in their files in if (!class_exists('class-name')) {}, but if it is about performance that is perhaps not much better.

Any chance to get that fixed??

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.