// Controller function

public function testAction()
{
    $view = new \Phalcon\Mvc\view\Simple();
    $view->setViewsDir( dirname(dirname(__DIR__)).'/viewsDir/');

    $view->setVar("var1","value1");
    $view->setVar("var2","value2");
    echo $view->render('viewsTemplateFile');
}

// viewsTemplateFile.phtml
// Hierarchical Rendering : phtml

<html>
 var1 value is <?php echo $var1 ?>
 var2 value is <?php echo $var2 ?>
</html>

phalcon link : https://docs.phalconphp.com/zh/3.2/views