/** * This is an interesting method. It returns an image, not HTML! * @return void */ public function action_image() { $this->auto_render_layout = FALSE; $EzLink = new Model_EzLink(); $image = $EzLink->getStatisticsImage(); $this->response->header('Content-type', 'image/png'); imagepng($image); }