Cakephp local setup

Setting up cakephp in local development environment can be tricky, escpecially in windows.
There are two setups to every cakephp application, development and production.
Using development setup is easy, just extra cakephp to, let’s say http://localhost/webapp. And you are done.
To change to production setup, just change your document root to ROOT.’/webapp/app/webroot/’.
Even when you are using development setup, every request is still redirected to app/webroot.
So all your css, js and images should be put in webroot directory.
Since cakephp uses pretty urls. You can’t use relative links in your application. To get around this problem, i set up a virtual host in apache.
to do this, please visit this site.