process views to php