php class template,php code and view html,separation