Help get page approver name

Permalink 1 user found helpful
I need to display the current page approver's name, anyone know how to do that? thanks

 
moosh replied on at Permalink Reply
moosh
You need to use getVersionApproverUserName() method of CollectionVersion Class
tailorweb replied on at Permalink Reply
Thanks for the reply moosh

which variable can I access the CollectionVersion object?
moosh replied on at Permalink Best Answer Reply
moosh
Humm..

Try this :

$c = Page::getCurrentPage();
$cvo= $c->getVersionObject();
$approver = $cvo->getVersionApproverUserName();
echo $approver;
tailorweb replied on at Permalink Reply
Thanks moosh

it works perfect, you just saved my hair from getting pulled