From d43d5ecbb47603b801d4df20c9205eb3b84c16c0 Mon Sep 17 00:00:00 2001 From: Yovi Prasetyo Date: Sun, 22 Oct 2017 17:39:57 +0700 Subject: [PATCH] Update MY_Output.php Add set_output_data_arr to set the output data with the given variable is associative array --- application/core/MY_Output.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/core/MY_Output.php b/application/core/MY_Output.php index 10ef413..75f5db6 100644 --- a/application/core/MY_Output.php +++ b/application/core/MY_Output.php @@ -148,6 +148,10 @@ function _display($output=''){ function set_output_data($varname, $value){ $this->_output_data[$varname] = $value; } + + function set_output_data_arr($arr){ + $this->_output_data = $arr; + } private function get_template_output($output){ @@ -235,4 +239,4 @@ public function set_canonical($url) { $this->_canonical = $url; } -} \ No newline at end of file +}