17488 Posts in 4473 Topics by 1978 members
|Go to End|
30 September 2007 at 9:52pm
So I have this function Gravatar() in my pagecontroller. How would I access it in my template? I always seem to get parse errors when using arguments?
function Gravatar($email= "")
$size = 40;
$grav_url = "http://www.gravatar.com/avatar.php?gravatar_id=".md5($email)."&size=".$size;
$img = "<img src='$grav_url' alt='A member picture' />";
I'm probably doing it the wrong way...?
30 September 2007 at 10:22pm
Fixed. Placed it in the DataObjectDecorator of Member...
But still want to hear how I would do it the old way...?
|Go to Top|