In this post, we will see how to resolve Suspected Caching Issue with CakePhp 4 Question: I’m recently getting back into programming after taking a break for quite some time. I’m currently trying to rebuild my CakePhp 2.X apps for ...

In this post, we will see how to resolve What is the best way to save token (JWT) in cakephp 4? Question: I have a project and I made the backend using nodejs. I made a user registration module and ...

In this post, we will see how to resolve Changed my Azure App Service to PHP 8.1, nginx keeps returning 404 Question: I’m attempting to move a CakePHP app to an Azure App Service with PHP 8.1 from PHP 7.4. ...

In this post, we will see how to resolve Cakephp redirect in isAuthorized method not working Question: So after login in isAuthorized method I’m trying to redirect user based on a condition. But problem is it’s not redirecting. Below the ...

Question: Want to log each save activity of all model table. I used afterSave method in a single model i.e. working fine. Now in place of adding same in all modelTable one by one, I want to write below method ...

Question: I have multiple fields setup as FK to the same table. The FK can also be NULL. I keep getting this error: Database structure: Column definition (ie. late_agreement_exception_outcome_recommendation_id): Column relationship (ie. late_agreement_exception_outcome_recommendation_id): ExceptionTable: FK setup to ExceptionOutcomes Edited rules ...

Question: Is there any way of running a shell command DIRECTLY on the Command Class for CAkePHP4? I would like something like this. Answer: Command::run() is used to run the current command, you don’t call it yourself for any other ...

Question: I have time in seconds when the session should end. If the user has not selected the checkbox “remember_me” – the session will last 2 hours. When the checkbox is selected – should last – 48 hours. I have ...

Question: I have a CakePHP4 App where I create a D3JS WorldMap in a <script> tag. I need to link to a JSON File in this line d3.json("https://api.jsonbin.io/b/61f8ec14518e5f3b2ab3e218", function(error, topology) { but this time its saved in webroot folder. I ...

Question: CakePHP Version: 4.2.6 Xampp: Apache/2.4.51 (Win64) OpenSSL/1.1.1l PHP/8.0.11 Server version: 10.4.21-MariaDB – mariadb.org binary distribution PHP version: 8.0.11 Introduction I’m trying to construct a deleteAll query with the order by and limit clauses. SQL When the following sql is ...