Technical tips collected over several decades in IT

CakePHP/Queue WorkerListener Example Class

This is an example of implementing a WorkerListener class for the new CakePHP/Queue plugin as mentioned here => Config array // ... 'Queue' => [ 'default' => [ // A DSN for your configured backend. default:...

CakePHP 4 has Deprecated File & Folder

So recently my code editor has been putting a line through File because it is going to removed in CakePHP 5 So here is an example of code that uses the deprecated methods and the suggested SplFileObject Using File public function createTempFile($print_content,...

Format validationsErrors

A recursive function that takes a validation error array and return a string with all the different errors concatenated into a formatted string Further to my previous posting This function will walk...


Blog History