We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 06f94ac + ac033c4 commit 9ed8019Copy full SHA for 9ed8019
application/libraries/REST_Controller.php
@@ -192,15 +192,15 @@ protected function early_checks()
192
* Constructor function
193
* @todo Document more please.
194
*/
195
- public function __construct()
+ public function __construct($config = 'rest')
196
{
197
parent::__construct();
198
199
// Start the timer for how long the request takes
200
$this->_start_rtime = microtime(true);
201
202
// Lets grab the config and get ready to party
203
- $this->load->config('rest');
+ $this->load->config($config);
204
205
// This library is bundled with REST_Controller 2.5+, but will eventually be part of CodeIgniter itself
206
$this->load->library('format');
0 commit comments