Post by codex73 » Fri Dec 17, 2010 9:21 am

Dear All,

I've tried to load a simple third party php class to use within Opencart. It's a simple content parser which I use on anothert site, nothing mayor.

I've tried to include and user this class without luck. Included the file and instaciation onto different locations, even @ inside TPL files.

The only way I've made the custom class work is if I include it's file, instanciate it and the call one it's method as first lines of header.tpl

Havent' find a way I can load the file, instanciate it, and the call the object methods from any TPL.

I'm not the best when it comes to understanding logic on opencarts MVC frame.

Any advice, direction will be great. ???

New member

Posts

Joined
Wed Oct 28, 2009 1:53 am

Post by Qphoria » Fri Dec 17, 2010 10:14 am

That is technically the correct way. All libraries are included. Take a look in the index.php file or the startup.php file

The files are required or included.. then instantiated.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: Ahrefs [Bot] and 4 guests