title: Getting base directory in CakePHP
body: <p>I am working on a CakePHP project. Here, I have to upload a file and then move that file to a specific folder. Uploading is working well, but I can't move it to the folder I want. Is there any function or something in CakePHP to move the uploaded file ?</p>
  
  <p>Currently I am using PHP's core function <code>move_uploaded_file()</code>. This function requires absolute path for both source &amp; destination, not the <code>http://localhost/....</code>, I tried it, but it didn't work. So, do you know how do I get the <code>Base Directory/Absolute Path</code> of my application ? This would be like : <code>C://wamp/www/project_folder/......</code>.</p>