public function sfForceDownload($sfAction) { $newName = sprintf('%s_%s.%s', $this->getFilename(), date('(Y-m-d_H:i:s)'), $this->_fileext); poDownload::sfForce($sfAction, $this->getFilepath(), $newName); }
<?php /** * This no replace acceptance testing. * * For acceptance testing view test/ folder. */ require_once dirname(__FILE__) . '/../lib/poDownload.class.php'; $file = isset($_GET['file']) ? $_GET['file'] : ''; $filepath = dirname(__FILE__) . '/' . $file; poDownload::force($filepath);