Skip to content

Commit 64338b4

Browse files
committed
Removing the unnecessary code
1 parent f73edfb commit 64338b4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

application/core/MY_Controller.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ public function __construct() {
2828
*/
2929
protected function render_view( $view, $vars = array() ) {
3030
$vars['content'] = $this->get_component_view( $view, $vars );
31-
// Pass variables to React Views using associative arrays to $vars['react_vars']
32-
// like $vars['react_vars'] = array( 'message' => 'Welcome to CodeIgniter React ');
33-
if( ! isset( $vars['react_vars'] ) ) {
34-
$vars['react_vars'] = [];
35-
}
3631
$this->load->view( $this->theme_base . 'base', $vars, FALSE );
3732
}
3833

0 commit comments

Comments
 (0)