Jump to content

Extending CubeCart


Recommended Posts

Regarding Cubecart::loadPage(), switch $_GET['_a'] case default...

How can:

 if (method_exists($this, $method)) $this->{$method}();

accomplish anything? Other than calling methods that already exists in the class?

A new method cannot be added to the Cubecart class via hooks. A separate child class extended from the parent Cubecart class is not within the $this scope as used in the parent Cubecart class.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...