Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit f201ef0

Browse files
committed
✨ add support for request and response in controllers
Signed-off-by: otengkwame <[email protected]>
1 parent 9b4edb3 commit f201ef0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

framework/core/Controller.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,20 @@ class CI_Controller {
7272
*/
7373
public $use;
7474

75+
/**
76+
* CI_Input
77+
*
78+
* @var CI_Input
79+
*/
80+
public $request;
81+
82+
/**
83+
* CI_Output
84+
*
85+
* @var CI_Output
86+
*/
87+
public $response;
88+
7589
/**
7690
* Class constructor
7791
*
@@ -91,6 +105,8 @@ public function __construct()
91105

92106
$this->load =& load_class('Loader', 'core');
93107
$this->use = $this->load;
108+
$this->request = $this->input;
109+
$this->response = $this->output;
94110
$this->load->initialize();
95111
log_message('info', 'Controller Class Initialized');
96112
}

0 commit comments

Comments
 (0)