Progress: all works great. Next, pass parameters to getData.php and make getdata as function at appctrl