Forums / Developer / Create Objects with ezimage datatype

Create Objects with ezimage datatype

Author Message

Håkan Bergman

Friday 06 May 2011 1:01:33 am

Hello,

I have been struggling to create a class (image) that have the ezimage datatype.

The rest of the values work fine.

$AttributesData['image'] = 'test.jpg';

$Params['storage_dir'] = $_SERVER['DOCUMENT_ROOT'].'/xml/';

I put the test.jpg in root-folder, xml-folder and extension folder just to see if it reads from root, xml or extension folder.

This wont work, I dont get an error and everything is created, but no image is added to the object.

Ive tried to read on numerous solutions on how this could be done, but adding the image into the attributesdata seem like the best and easiest solution. How do I make this work?

Best regards,

Håkan Bergman

Håkan Bergman

Friday 06 May 2011 5:43:32 am

Got it to work.

The relative path was wrong, but now it works perfectly.