title: codeigniter mobile detection and desktop version
body: <p>I can get mobile site in mobile phones using the code below in the default controller index function. But I want to browse desktop version again in mobile. Since the code above resides in default controller index function, there is no way to browse desktop site in mobile, please help</p>
  
  <pre><code>public function index() {
      $this -&gt; load -&gt; library('Mobile_Detect');
      $detect = new Mobile_Detect();
      if ($detect-&gt;isMobile()) {
          header("Location: ".$this-&gt;config-&gt;item('base_url')."/mobile"); exit;
      }
  }
  </code></pre>