title: Zend 2:: getting public folder path or basePath() easily in controller action
body: <p>In my application, to move a file to a specific directory i need to know public folder path in controller action. I read different this type solution but not getting easy one. I know that in view we can get easily public folder path using <code>$this-&gt;basePath();</code> view helper. I exactly want this in controller action. Anybody can guide me how can i achieve that. Thanks in advance.</p>