Integrated layout in PHP