title: GET and POST functions in PHP / CodeIgniter
body: <p>I like MVC (a lot), and I am trying to teach myself a framework of MVC architecture in all the major web languages of today.</p>
  
  <p>I am currently on CodeIgniter and PHP. I searched online for a way to make the same function behave different for a POST and GET but couldn't find anything. Does CodeIgniter have this feature?</p>
  
  <p>If you've used Ruby On Rails or ASP.NET MVC you'll know what I'm talking about, in them frameworks we can do this:</p>
  
  <pre><code>[GET]
  public ActionResult Edit(int Id)
  {
      // logic here for GET
  }
  
  [POST]
  public ActionResult Edit(EntityX EX)
  {
      // logic here for POST
  }
  </code></pre>
  
  <p>I am so used to this, that I am finding it hard wrapping my head around how to get the same smooth functionality without that useful ability.</p>
  
  <p>Am I missing something? How can I achieve the same thing in CodeIgniter?</p>
  
  <p>Thanks</p>