As you Know CakePHP 4 is a beautiful framework can help you easy to build up any CMS (Conetent Management System) website. because it can easy to implement CURD (Create, Updated, Read, Delete) feature. Also this framework still intergrated support you how to easy build a fresh UI with easy customize it (you can change any UI as you like) . Use a Twig language for customize the template so you can easy to do it.
Today I will share with you how to config prefix on Routes in CakePHP 4 for ByPass CRSF Issue
Good morning Everyone, welcome to Webzone, Tech Tips. I am Zidane (ιΈ‘θ)Another thing I love this framework because of this support validate from very good and here will have a nice way for mapping your control TextBox, Inputbox, RadioBox, Checkbox. This will auto mapping between your database on your datatype, you just can use one command: $this->Form->control is can build up above control,
One more thing is on Cakephp is a Migration feature, it can help you migrate any data
Support connect multiple database as the same time. I will share with you on next topic how to do that with CakePHP
Ok Let's focus on this topic: How to confi prefix on Routes in Cakephp 4 for bypass CRSF Issue
First you need go inside config/routes.php
add below prefx for Router
Router::prefix('api'. function(RouteBuilder $router) {
$toutes->setExtensions(['json']);
$routes->fallback(DashedRoute::class);
})
π Tiktok
π Facebook:src/Application.php file add get prefix corresponding for skipCheckCallback