Questions tagged [cakephp-3.x]

Inquiries pertaining to the 3.x version of the CakePHP MVC framework. Be sure to include this tag along with the overarching [cakephp] tag when seeking assistance specific to the 3.x branch. If your question is more broad and related to CakePHP in general, simply use the [cakephp] tag.

Encountered a message stating "Value cannot be converted to string" while fetching data from a belongsToMany relationship

Currently, I am utilizing CakePHP 3.3.6 along with MySQL 5.7.13. The database consists of several tables, including collections, tags, and the intermediary table collections_tags. Collections Table CREATE TABLE IF NOT EXISTS `database`.`collections` ( ...

Creating a COALESCE statement in CakePHP 3 query builder

Is there a way to incorporate the COALESCE() statement directly in the query builder? SQL SELECT COALESCE(n.value, p.value) AS value FROM nodes n LEFT JOIN parents p ON p.id = n.parent_id PHP I am currently retrieving both child and parent values separ ...

Unable to fetch data in CakePHP 3.x controller using jQuery AJAX POST

I've been searching everywhere and unfortunately, I can't seem to figure out why the data is not being sent to my controller when posting via ajax. Here's the jQuery code snippet: var newDate = {}; newDate['start'] = startyear+"-"+startmo ...

Executing CakePHP version 3.1.6 with the dispatch function, utilizing a Request created from the global variables and a

Recently, I decided to improve my development environment on my laptop by utilizing Vagrant and VirtualBox. After downloading the CentOS7.1 box, I installed PHP 7.0.1, Apache 2.4.18, and MySQL 5.6.28. A friend suggested that I add the intl extension for Ca ...