title: How do I get the project basepath in CodeIgniter
body: <p>I have created a folder as user in the root directory.</p>
  
  <p>My project base path is:</p>
  
  <pre><code>/var/www/myproject/
  </code></pre>
  
  <p>When I want to access the base path as BASEPATH from a controller it's showing:</p>
  
  <pre><code>/var/www/myproject/system/ 
  </code></pre>
  
  <p>But I want the path to be:</p>
  
  <pre><code>/var/www/myproject/ 
  </code></pre>
  
  <p>I am new to CodeIgniter. How do I set this path?</p>