controller on pure php