title: Correct naming structure for CodeIgniter
body: <p>I'm starting my 1st CodeIgniter project and want to get some advice before i start. I'm a little confused with how the name of the controller and models work.</p>
  
  <p>If i want the url to my company page to be <a href="http://example.com/Company/view" rel="noreferrer">http://example.com/Company/view</a></p>
  
  <p>the controller needs to be called Company.php correct?
  inside the company controller it would look like this:</p>
  
  <pre><code>public function viewAll()
  {
      $this-&gt;load-&gt;model('Companymodel');
      $this-&gt;load-&gt;view('templates/header');
      $data['result'] = $this-&gt;Companymodel-&gt;viewAll();
      $this-&gt;load-&gt;view('company/viewAll', $data);
      $this-&gt;load-&gt;view('templates/footer');
  }
  </code></pre>
  
  <p>ok im confused here, on line 4 above: </p>
  
  <pre><code>$this-&gt;load-&gt;model('Companymodel');
  </code></pre>
  
  <p>this call to the company model page needs to have 1st letter capital with the rest lower case?</p>
  
  <p>if that's correct, does the model file need to be called Companymodel.php and placed inside the application/models folder?</p>
  
  <p>is it bad practice to call the controller and model the same</p>
  
  <p>example: Company.php and place it inside /application/controller/
  and then have the model called Company.php and place it inside the application/model or should the model be called Companymodel.php</p>
  
  <p>I guess my ultimate question is the naming convention of the controller and model files, and whether they can be upper case or not.</p>