title: Setup urlManager in Yi2 to work like twitter
body: <p>Ho can I set up urlManager patterns in a way that it works like twitter or any other social networks? for example I want to have the following routes:</p>
  
  <pre><code>http://www.example.com/[user_id]
  http://www.example.com/[user_id]/[mycontroller]/[myaction]
  </code></pre>
  
  <ul>
  <li>If users write their user_id it goes to their dahboard page. </li>
  <li>If user    write their user_id followed by a controller and action
  name it    proceeds to proper controller action</li>
  </ul>