python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Pass parameter from URL to controller function with correct type in CakePHP
I am developing a RESTful API using PHP 7 and CakePHP 4.0.
<?php
namespace App\Controller\Api;
use App\Controller\AppController;
class ProductsController extends AppController
{
public funct...
mrodo
Votes: 0
Answers: 1
Cakephp Showing count of items by relationship
I'm using CakePHP 3.9 and i have the following code
$contactsByGroup = $this->Contacts->find('all', [
'fields' => [
'ContactsCategories.id',
'ContactsCategories.name',
...
Enrique Benitez
Votes: 0
Answers: 1
How to use one Route for a controller to hit all actions in Laravel 8
I switched to Laravel 8 from CakePhp and I would like to know if it's possible to use only one route for all the actions in a controller. I found "Implicit Controllers" for Laravel 4.2 but i...
devlogi
Votes: 0
Answers: 2
What's going wrong with my migrations on CakePHP 4?
I've applied a couple of minor changes to the database structure for my app, adding new columns to a table called Plots. This is one of the migrations -
declare(strict_types=1);
use Migrations\Abstra...
Gordon Cowtan
Votes: 0
Answers: 1