Jump to content

Edit History

ApoA

ApoA

hello,

well i forgot, you can just put "MyClass" inside the root folder of your module, and you must include in your module controller like this

include_once('myclass.php');

or

require_once dirname(__FILE__).'myclass.php';

it depends which one works, and after that you can do something like this above your module controller class name

$myclass = new myclass();

now you can use every method in myclass like this

 $this->makeMeRich();

i hope i got it right 😄

ApoA

ApoA

hello,

well i forgot, you can just put "MyClass" inside the root folder of your module, and you must include in your module controller like this

include_once('myclass.php');

or

require_once dirname(__FILE__).'myclass.php';

it depends which one works, and after that you can do something like

$myclass = new myclass();

now you can use every method in myclass like this

 $this->makeMeRich();

i hope i got it right 😄

×
×
  • Create New...