title: Application directory path
body: <p>How can I get the <code>application</code> directory path in CodeIgniter? 
  Is there any 'not dirty' way to do that?</p>
  
  <p>I was looking through the constants but the most closer one I found was the <code>BASEPATH</code> which returns a full path to the <code>/system</code> directory, so basicly I can <code>str_replace</code> system with the application - but I'm just curious, is there any other clean and short way to get application directory path?</p>