We’re rolling out the new HotelsAfloat.com website, and we are really very happy about the result. Built using the CakePHP (MCV) , framework, fine tunning the display to the owner’s requirements for more and more quality UX is a dream. The backend office is easily modified so that we can simply add more functions for managing the site.
One of the most important requests from our client concerns the responsive quality of the design and layout for mobile, tablet and desktops. We’ve used Boostrap CSS3 to the design and had no problems.
Install the Netbeans plugin for CakePHP.
If you are using XAMPP, you may have to verify your PHP.ini settings and have the following
(i.e. uncomment the line)
I’m also using Composer, a dependancy manager, which is easy to install and very very helpful. So just go here https://getcomposer.org/ and follow the instructions.
You must also be able to execute CLI (Command Line Interface) PHP commands. This can be tricky to set up and is very dependant on your own environment. There is plenty of information on the web about this, search for CLI PHP and or go to the PHP site.
Creating your Address Book
We should now be about ready to create the project, we’ll try and create a simple web based address book. Let’s see if we have the same screen shots in the following steps.
Step 1: Click File -> New Project
Step 2 : Let’s call the project addressbook and the location for all the files should be accesible through your server, so set the paths correctly.
Step 3: Click on finish and then Composer kicks in and starts to do it’s magic.
Once Composer has finished your address book should have this structure in the Project tab.
Step 4: Check what the server dishes up in your browser, you should see something very similar to the screen below
If you have some other strange errors, such as vendor/autoload.php not found, try using Composer to update your project. !To do so, follow the next screen .
Let’s start editing the files
Step 6 : Create a database and name it addressbook , then open /config/app.php and set the necessary values for connecting to your database.
This should remove the “CakePHP is NOT able to connect to the database” error message.
Make sure you have ‘debug’ => true, refresh the home page and you should have no errors.
Now before continuing, click on the yellow icon located bottom right by default (it used to be top right in Cake2).
Once you’ve clicked, the debug plugin will open as shown below.
At home I use a NAS and have all my audio files stored there.
I really think the top 2 media players suck and this feeling has been confirmed today when I wanted to play some music over the lap top using Windows 10 and iTunes.
In the top left corner of iTunes, you should see a “Home” icon, so that you easily switch between your pc and other local network devices that are streaming (in my case the NAS with it’s iTunes server).
With a new up to date installation and making sure the Shared Libraries is checked, the icon will not show. I’ve tried logging in, logging out, restarting etc.
Searching for support is no easy task and often consists of stupid things to do with your Apple account or firewall settings, however after some digging there is simple solution of switching off IPv6 in your network adapter.
So close the program on your PC, change your network settings, restart iTunes and you’ll see the Shared Libraries button. I’m not sure how long it will remain there.