function render_after($data) { $data['user_ip'] = $this->get_user_ip(); if ($this->_user) { $data['user'] = $this->_user->render(); } }
/** * To template */ public function render() { $data = $this->user->render(); $data['logged_in'] = $this->_logged_in; $data['useragent'] = $this->get_ua(); $data['session_sid'] = $this->_session_id; return $data; }