Php Function Use External Controller