I made two requests. The first one gives me 2419 results and I store the result in $requestFirst. The second, 1 result and I store the result in $requ ...
I made two requests. The first one gives me 2419 results and I store the result in $requestFirst. The second, 1 result and I store the result in $requ ...
A redirect, called by the private function r(), in the edit function works, but not in the delete. Even commenting out the allowMethod doesn't help. ...
Please, can someone help me out and tell me what is wrong with my CakePHP app registeri controller method code on GitHub? https://github.com/olaolu200 ...
I'm trying to set two buttons so depending of the language user can switch to the other. In my default.php I have this, to change on click on the lin ...
I need all models inside a custom CakePHP plugin to use a database prefix. I'm trying to use an event, as suggested by @lorenzo. I'm getting severa ...
I just migrate a cakephp 2.5 app to a server with PHP 7.2 (before server has 5.6 to 7.1), so I should update core (2.10) and finally get to show the a ...
I have a very wired issue. I usw CakePHP 4.x and CakeDc-Users-Plugin. For the Login method i use a custom View in Templates/cakedc/Users/Users/login. ...
I'm trying to send an image to a registration service made in Node.js. I have a form made like this: In the controller I get the image like this: ...
I'm trying to fire a flash from a listener, the listener fires correctly but the component keeps failing. $flash = new FlashComponent(new ComponentRe ...
In CakePHP, database connection strings, salt, and encryption keys are stored in plain text. If someone physically steals the webserver, they can obta ...
I am using cakephp 2.10.24. I need to use the variable returned from the controller in a php file(not a view), so I used the dispatch function to make ...
I'm doing the test for my UserController and I'm having trouble with my login test. I'm using cakephp4 with phpunit. The test I'm doing is this: M ...
How can I link a custom CSS file to my view in CakePHP2? I have a page that needs a unique css style and would like to know how to connect a custom st ...
I simply have a returned string? from CURL and cannot get the values like access_token? I am using cakephp 4 (we have debug not var_dump) Code in cak ...
I am using a PostgreSQL database where the column names are in snake case, but want them converted to camel case before sending the JSON response. Is ...
So i have a checkbox and i need certain values to be checkd i tried to do this and is not working $columnas = [ 1 => 'Columna 1', 2 => ...
I'm doing cakephp4 controller test with phpUnit but when I call save my id auto_increment disapear. My table before save(): Image before save The te ...
I've been trying to save a record that has children and the children has children. I've tried passing a deep association, but I have only been able to ...
I have a PHP 8.1 application deployed on Azure App Service, Nginx and PHP-FPM which is supposed to have long running scripts. The process is working ...
We are upgrading our CakePHP 3 project to CakePHP 4 because we need to support PHP 8.1. We are also using https://github.com/FriendsOfCake/bootstrap- ...