Page controller for legacy and simple php.