call a helper function in controller in codeigniter
问题 I created a helper for visit hits and it contains a function which inserts some data in to the database: hits_counter_helper.php : function count_hits($options = array()) { //Determine whether the user agent browsing your site is a web browser, a mobile device, or a robot. if ($this->agent->is_browser()) { $agent = $this->agent->browser() . ' ' . $this->agent->version() . ' - ' . $this->agent->platform(); } elseif ($this->agent->is_robot()) { $agent = $this->agent->robot(); } elseif ($this-