Install a new Cakephp3 Project with composer

  1. You need the php tool composer which you can get from composer.org
  2. Simply run the following command in the windows command prompt  while in your “c:\xampp\htdocs\” folder;

    3.In your htdocs folder you should see a new folder called “my_app_name”

    Example:
    If you wanted to create an application called  “mywebapp” simply enter;

AMD Driver Issues – Update 24th feb

Update 24th feb:
Teh latest AMD drivers cause problems with Overwatch, they seem to cause FPS spikes and basically ruin the game so once again ive rolled back them, drivers to right where i was 16.11.5

I seen a post on the Blizzard forums which acknowledged the issue;

Micro freezes after the new AMD driver update?
https://us.battle.net/forums/en/overwatch/topic/20753198965


So i seemed to have solved the problems with the AMD drivers, i installed the Windows 10 Anniversary Update and not only does windows feel faster the drivers that had problems before now work.’

However im using 17.1.1 at the moment and have not retried the drivers below that were crashing.

Also when you upgrade your drivers you should always reset your in game video settings usally a “restore to default” option exists.  This seems to have sorted all the problems i was having.

AMD have released new drivers 17.1.2

Ive had 4 crashes to desktop since i installed the newest AMD 16.12.2 with Battlefield 1 so ive rolled back to 16.11.5.  The problems and crashes also happen with other games.  Im running Windows 10 64 bit with an AMD R9 380 4 GB.

The errors i got in Battlefield 1 happened 4 times and i wasn’t using DirectX 12 mode either and it never occurred before with previous drivers.


 

 

 

 

And since rolling back the drivers I’ve had no problems, guess the lads at AMD need to sort out the driver.

After a quick Google it seems im not the only person with this problem.

https://community.amd.com/thread/208966

https://www.google.ie/search?q=amd+16.12.1+problems&oq=amd+16.12.1

Edit:
AMD have released new drivers 16.12.2 and i still have issues with them so back to the old drivers.  A clean install of windows 10 didn’t fix the issue either.

16.12.2 – New Error -wtf

Even the update a few days ago still hasn’t sorted the problems.

 

 

CakePHP3 Cache Example – Using Curl to get a Web page contents


Heres a simple example of using the cache feature of cakephp. We want to grab a webpage contents from the web but we only want to do this once otherwise its going to be slow and waste resources.

The basic idea is that we check if the url is saved in cache, if it is then we read it in otherwise we must use curl to grab it.

CakePHP3’s Cache settings are in the config/app.php file;

 

 

CakePHP 3 Cache:
https://book.cakephp.org/3.0/en/core-libraries/caching.html