1、创建behavior frontendbehaviorsMobileBehavior.phpclass MobileBehavior extends yiibaseBehavior{public function