Before we start using the CakePHP shell, we need to set up the Cake shell in our operating system. The process of the setup varies depending on the operating system. But the main idea is to add our /cake/console/
folder to the path variable of the operating system. We will first see how to do that in Windows XP/2000. After that, we will see how we can set it up in Linux.
Setting up the Cake shell in Windows is easy. We just have to add our PHP installation path and Cake's console directory's path to the system variable path
. We will now see how to do that step by step.
Create a new Cake project named
rapidcake
.Go to the Control Panel of your operating system. Click on the System item. A dialog box will open up. Go to the Advanced tab of that window.
At the bottom of this window, find a button named Environment Variables. Click on that button, it will pop up another dialog box...