예제 #1
0
파일: layout.php 프로젝트: ragchuck/ra-Log
 /**
  * Overwrite Functions and Profile
  */
 protected function _load($path)
 {
     // @TODO: mobile cookie...
     if (Request::user_agent('mobile')) {
         $path = 'mobile/' . $path;
     } else {
         $path = 'desktop/' . $path;
     }
     $token = Profiler::start(__CLASS__, __FUNCTION__);
     $r = parent::_load($path);
     Profiler::stop($token);
     return $r;
 }