James McDonald

Access

Blog History

Cakephp 4 with cakedc/auth and rbac

I have been trying to do a Youtube video coding a CakePHP 4 with Authentication / Authorization using RequestAuthorizationMiddleware tied into CakeDC/auth RBAC After multiple tries I'm just posting it as is. I learnt I'm not currently a video editor....

read more

Add Xdebug to a Chocolatey Installed PHP

This is my version of PHP. installed with choco install php. Notice no Xdebug php -v PHP 8.1.6 (cli) (built: May 11 2022 08:56:01) (NTS Visual C++ 2019 x64) Copyright (c) The PHP Group Zend Engine v4.1.6, Copyright (c) Zend Technologies Goto downloads for xdebug here...

read more

Before you Upgrade to Windows 11

Download and install Veeam agent for Windows Community Edition https://www.veeam.com/agent-for-windows-community-edition.htmlIf the upgrade fails you can roll back and try again later (my desktop that I write this post on was unbootable after the first upgrade and I...

read more

List your VSCode Extensions

Ever wondered what extensions you have installed and want to keep a list? This actually is a good way to audit your currently installed extensions and then weed out the ones you no longer need or don't use code --list-extensions # output...

read more

array_merge vs the + operator

<?php $options = [ 'rootNode' => 'response' ]; // array_merge // the same key appearing later will overwrite echo print_r(array_merge(['rootNode' => 'root'], $options), true); /** * output * * Array * ( * [rootNode] => response * ) */ // + syntax if it already...

read more