redirect('Index/index'); } protected function _initialize(){ if (is_mobile_request()) { C('DEFAULT_THEME','wap'); $device = get_devices_type(); define('DEVICES', $device ? $device : 1 ); } else { define('DEVICES', ''); } } public function __construct(){ parent::__construct(); $this->assign('download_url',str_replace('site.php','site.php',$_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST'].U('Down/index',array('account'=>I('account'))))); } }