Row_Rendered event to show image

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
GT73
User
Posts: 415

Row_Rendered event to show image

Post by GT73 »

I should see an image (default image folder) if the field is empty. how can i use the item $this->PathImage->ViewValue = 'MyImage.png'; in Row_Rendered?


mobhar
User
Posts: 11727

Post by mobhar »

To check/expose the properties that belong to that field, put this code in "Row_Rendered" server event:

var_dump($this->PathImage);


GT73
User
Posts: 415

Post by GT73 »

I exposed the properties, but also if I set the value
$ this-> PathImage-> CurrentValue = 'b50.jpg';
$ this-> PathImage-> ViewValue = 'b50.jpg';
$ this-> PathImage-> dbValue = 'b50.jpg';
I do not see the image. The field is set as a file. In practice, if it is not filled with a picture, you will see a default image.


Post Reply