ice framework documentation ice doc v1.10.1
    
namespace Ice\Mvc\View\Engine;

use Ice\Mvc\View\Engine;

/**
 * PHP template engine.
 *
 * @package     Ice/View
 * @category    Component
 * @author      Ice Team
 * @copyright   (c) 2014-2023 Ice Team
 * @license     http://iceframework.org/license
 */
class Php extends Engine
{
    /**
     * Render the PHP file.
     *
     * @param string path
     * @param array data
     * @return string
     */
    public function render(string! path, array data = [])
    {
        var key, value;

        for key, value in data {
            let {key} = value;
        }

        ob_start();
        require path;
        return ob_get_clean();
    }
}