in test .volt i have a js function run(), i want to call it from Controller action
<html>
<body>
<h1>Test</h1>
<p>sample
<script type="text/javascript">
function run(){
alert("hello world");
}
</script>
</body>
</html>
<?php
use Phalcon\Mvc\Model\Criteria;
use Phalcon\Mvc\Model\Query;
use Phalcon\Mvc\Model\Query\Builder;
use Phalcon\Paginator\Adapter\Model as Paginator;
class SampleController extends ControllerBase
{
public function testAction()
{
i want to call js function from here
/// echo "<script> run() </script>"; // this code is not working
}
}