public function action_get($sourceID = null, $id = null, $size, $rd) { ob_start(); $source = Model_Source::find($sourceID); if ($source) { $cacti = new \Cacti($source->content); $code = $cacti->authentication($source->user, $source->pass); if ($code == 200) { $graph = $cacti->graph($id, $size, $rd); ob_end_clean(); header('Content-Type: image/png'); echo $graph['ret']; //$this->resize($graph['ret'],$size); // // //echo ; } } // }