Defining EXT constant

Add EXT constant in case the ORM it's used in CI 3.x