What's the proper method to render a field within the views?

In node templates I render php code using

<?php
echo render($content['fancy_field']);
?>

But when I want to render php code within a view I was using

<?php
echo render($view->result->_field_data['nid']['entity']->fancy_field);
?>

But it didn't works, any ideas?