Skip to content

Commit

Permalink
Adds $uri prop in Router, and AllowDynamicProps attribute for CI_Cont…
Browse files Browse the repository at this point in the history
…roller
  • Loading branch information
gxgpet committed Jan 27, 2023
1 parent ff28f9d commit e9ff2f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions system/core/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
* @author EllisLab Dev Team
* @link https://codeigniter.com/userguide3/general/controllers.html
*/
#[AllowDynamicProperties]
class CI_Controller {

/**
Expand Down
7 changes: 7 additions & 0 deletions system/core/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ class CI_Router {
*/
public $config;

/**
* CI_URI class object
*
* @var object
*/
public $uri;

/**
* List of routes
*
Expand Down

0 comments on commit e9ff2f2

Please sign in to comment.