public function xmlHeader($attrib = array()) { if (empty($attrib['encoding']) && @$this->request->params['Site']['device'] == 'mobile') { $attrib['encoding'] = 'Shift-JIS'; } echo $this->BcXml->header($attrib) . "\n"; }