Hey There,
I managed to extend the members with an extra class (db table).
// define the db-fields
static $db = array('Adres' => 'Varchar',
'Postcode' => 'Varchar',
'Woonplaats' => 'Varchar',
'Telefoon' => 'Varchar',
'Mobiel' => 'Varchar',
'Geslacht' => 'Varchar',
'Geboortedatum' => 'Date'
);
// Every profile has one member and one photo
static $has_one = array(
'Foto' => 'Image'
);
When i public view the profile i get all field by a $oMember = Member::get_by_id('Member',2);
I also get a Field called FotoID. But how can i view that image?
I tried :
<% control Foto %>
Foto id = $ID
<% control CroppedImage(103,105) %>
<img id="profielImage"alt="<% control Member %>$FirstName $Surname<% end_control %>" title="<% control Member %>$FirstName $Surname<% end_control %>"src="$URL" />
<% end_control %>
<% end_control %>
But it doesn't render the image.
Please help :)
Thanks!