I am trying to load wygwam field type into a custom module, on my localhost the following works:
require_once(APPPATH . 'fieldtypes/EE_FieldType.php');
require_once(PATH_THIRD.'wygwam/ft.wygwam.php');
$wyg = new Wygwam_ft();
however when i upload to my server i get the following error:
require_once(../system/expressionengine/fieldtypes/EE_fieldType.php): failed to open stream: No such file or directory
I dont know why thats happening. Is there a better way to load the wygwam Field type? or is there any other way to do this?