Content Management Tutorial
Here’s what you’ll need:
- Basic PHP knowledge.
Before starting you should make sure that you have got an up to date PHPversion:
You should at least have got installed PHP 5.6.0 (CLI) or higher.Your webserver’s PHP version must also be of 5.6.0 or higher, andshould be the same version your command line interface (CLI) PHP is.
The easiest way to install CakePHP is to use Composer. Composer is a simple wayof installing CakePHP from your terminal or command line prompt. First, you’llneed to download and install Composer if you haven’t done so already. If youhave cURL installed, it’s as easy as running the following:
- curl -s https://getcomposer.org/installer | php
Or, you can download from theComposer website.
If you downloaded and ran the , then type the following line inyour terminal from your installation directory (ie.C:\wamp\www\dev\cakephp3):
The advantage to using Composer is that it will automatically complete someimportant set up tasks, such as setting the correct file permissions andcreating your config/app.php file for you.
There are other ways to install CakePHP. If you cannot or don’t want to useComposer, check out the Installation section.
Regardless of how you downloaded and installed CakePHP, once your set up iscompleted, your directory setup should look something like the following:
If you get lost during this tutorial, you can see the finished result .
Checking our Installation
We can quickly check that our installation is correct, by checking the defaulthome page. Before you can do that, you’ll need to start the development server:
- cd /path/to/our/app
Note
For Windows, the command needs to be (note the backslash).
Next, we will build our .