This code will show you the simple and clear way to have a good structure PHP OOP code which is scalable. It has 3 pages marked page1, page2, page3 in comments to show its working.