/** * 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; }