title: Device check in sencha touch 2
body: <p>I'm sure I'm just overlooking this question but I cant seem to find how to check the device.<br>
  I want to check whether the device is either a phone, a tablet in landscape mode, a tablet in portrait mode or a other device (computer).</p>
  
  <p>What I have is this:</p>
  
  <pre><code>if (Ext.platform.isPhone) {
      console.log("phone");
  }
  
  if (Ext.platform.isTablet) {
      console.log("tablet");
  }
  
  var x = Ext.platform;
  </code></pre>
  
  <p>But platform is undefined (probably because this is the way of Sencha Touch 1).</p>
  
  <p>Does anyone know the correct place for me to access the device check? </p>