I am surprised for why the constructor is called when we have different class and constructor name. Constructor name is starting with small \"r\"?
class Regi
In php, all function names are case-insensitive.
By the way, you should switch to the new-style __construct. Constructors as functions with the name of the class are a historical artifact.