error in CodeIgniter website after update php 7.4 to php 8.2
how to resolve error CodeIgniter website error PHP Warning Deprecated: Creation of dynamic property is deprecated
Adding this just above the class{ will fix it:
#[\AllowDynamicProperties]
/system/core/URI.php
#[\AllowDynamicProperties]
class CI_URI {
/system/core/Router.php
#[\AllowDynamicProperties]
class CI_Router {
/system/core/Loader.php
#[\AllowDynamicProperties]
class CI_Loader {
/system/core/Controller.php
#[\AllowDynamicProperties]
class CI_Controller {
/system/database/DB_driver.php
#[\AllowDynamicProperties]
abstract class CI_DB_driver {
Contact for Website Development, Ecommerce Website, Website Management, SEO, Digital Marketing Services, Server (AWS, Google, Godaddy, DigitalOcean etc) Management, Online Class, Web Development. Email : adityaypi@yahoo.com, Mobile : +91-9555699081