how to make a dynamic progress bar to show the percentage or status

Comparing #7 with #9

Content

[...]
class ActionGetProgressBarData extends CAction
{
public function run($key)
{
$response = ProgressBar::get($key);
Util::set_expires(0);
 
echo json_encode($response);
}

}

?>
[...]