Template how to get data from server in PHP