title: Getting controller name and action name from url
body: <p>I'm searching for an easy way to "translate" url strings into arrays of controller/action name pairs. </p>
  
  <p>example1:</p>
  
  <pre><code>/users/
  </code></pre>
  
  <p>should return</p>
  
  <pre><code>array('controller'=&gt;'users','action'=&gt;'index')
  </code></pre>
  
  <p>example2:</p>
  
  <pre><code>/admin/users/view/23
  </code></pre>
  
  <p>should return</p>
  
  <pre><code>array('controller'=&gt;'users','action'=&gt;'admin_view')
  </code></pre>
  
  <p>example3:</p>
  
  <pre><code>/
  </code></pre>
  
  <p>should return</p>
  
  <pre><code>array('controller'=&gt;'pages','action'=&gt;'home')
  </code></pre>