0

I have class autoloader and if i call $class = new myClass, everything is ok, class loaded, instance created.

I want to create instance of class like this $this->className->myMethod($args);` first create class className and call className's method myMethod?

Is it possible? Can someone post me example, please? Opencart script call modules like this $this->model_catalog_category->getCategory($category_id).

2
  • See the answer by Antonio Haley at stackoverflow.com/questions/533459/… Commented Aug 27, 2015 at 10:36
  • 1
    Oh, thank you very much Commented Aug 27, 2015 at 10:48

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.