title: How to detect HTTP method in CodeIgniter
body: <p>How can I detect HTTP method in CodeIgniter controller class?</p>
  
  <p><strong>Edited:</strong>
  Is there any other way than using <code>$_SERVER['REQUEST_METHOD']</code> in CodeIgniter?</p>