my cakePHP menu is not working

Hello I'm working on cakePHP and I'm new on it, and there are two links on my menu that aren't working(don't redirect to the pages they have to / looks like a broken link), the rest works fine and there is no different. Here is my code: <nav cla...
more »

2017-07-18 18:07 (1) Answers

CakePHP bizarre error

I include a PHP simple file by: require 'basic.php'; in bootstrap.php. Here is the codes: <?php override_function('strlen', '$string', 'return override_strlen($string);'); function override_strlen($string){ return strlen($string); } ...
more »

2017-07-18 18:07 (0) Answers

Cakephp 3 create entry, set custom primary field

I have a roles table. Looks like this: CREATE TABLE `roles` ( `role` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `permissions` longtext COLLATE utf8_unicode_ci ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; ALTER TABLE `roles` ...
more »

2017-07-18 15:07 (2) Answers

CakePHP 3 - Search suggestions

I'm trying to create a search suggestion input box with Cakephp 3. I found a tutorial online and i'm trying to implement it but i don't get a suggestion as mentioned in the tutorial. (http://www.naidim.org/cakephp-3-tutorial-18-autocomplete) PagesC...
more »

2017-07-18 08:07 (1) Answers

Cakephp connection with MQTT broker

I am working on Cakephp3 application to connect with Mosquitto broker(MQTT) for IOT project. I am not able to subscribe the topic continuously parallel to the other activities in application. As per the standard examples if i put infinite loop in s...
more »

2017-07-18 07:07 (0) Answers

Contain complex query date_format and between

Code Update 2017/07/20 I followed the recommendations of @Arcesilas (here) with the use of date_format of MySQL. I upgraded my data structure by merging start_month and start_day (ex 2017-01-16 = 0116) [...] ->contain([ 'Bookings', ...
more »

2017-07-18 06:07 (1) Answers

create proper association in cakephp 3

I want to create proper relation b/w two table. So that when I get data from lease table I will be able to get price table data too. Price table can have multiple id of lease table. The structure of tables are Lease Table Price Table Where id...
more »

2017-07-17 13:07 (1) Answers

How to debug delete() in CakePHP

how to debug delete() in CakePHP? When I do: debug($this->Sessions->delete($s)); I get this error: { "message": "SQLSTATE[42S22]: Column not found: 1054 Unknown column \u0027session_id\u0027 in \u0027where clause\u0027", "url": "\/a...
more »

2017-07-17 03:07 (1) Answers

CakePHP3: Check if model exists

I have a search engine which calls a Cakephp action and receives which model the engine should search in eg. "Projects". The variable is called $data_type; Right now I use this to check if the model exists: // Check if Table really exists if(!T...
more »

2017-07-16 15:07 (1) Answers

cakephp create select from database

I am trying to develop a form using cakePHP. <div class="links form large-9 medium-8 columns content"> <?= $this->Form->create($link) ?> <fieldset> <legend><?= __('Add Link') ?></legend> ...
more »

2017-07-16 06:07 (1) Answers

CakePHP 3 updateAll with alias

In CakePHP 2 we can use aliases in updateAll method, but in CakePHP 3 (tested 3.4.9) cannot using alias? $this->_table->updateAll([ $this->_table->getAlias() . '.deleted' => Time::now() ], [ $this->_table->getAlias() . '...
more »

2017-07-15 18:07 (1) Answers

Report generating tool for Cakephp

I am searching Report generating tool for my Cakephp application. I have found good report generating tool Reportico, but it does not support to cakephp. So please suggest good Report generating tool for cake php. ...
more »

2017-07-15 13:07 (0) Answers

FrozenTime object mistery

I found a strange case in a FrozenTime object. I get data from a find() and I send it to the view as usual. One particular field comes from a MySQL time column. The table name is sessions and the field is called time. When iterating the resulset, ...
more »

2017-07-14 23:07 (1) Answers

Cookie in PHP is not ready

I have an web application in CakePHP but my question is about PHP. I have an application (EX: APP1) that I want to use it with other application (EX: APP2). When I run APP2 I need the cookie/PHPSESSID for stay connected with APP1 so I should send P...
more »

2017-07-14 21:07 (1) Answers

cakephp 3 null parameters in view

I am new to cakephp 3 and i try to learn the framework.So i created a Pagescontroller, an index and display function.I want to pass a string or array to view.But i get null value in view. Below is my code PagesController index action public functi...
more »

2017-07-14 12:07 (3) Answers

How to store data into 2 tables - CakePHP

How to save data into 2 tables, if the situation is table1 (result): id, name_project, worker_id (leader), workers (other officers). Table 2 (worker): id, name . Table 3 (companion): id, worker_id, result_id . Data workers are taken from the data w...
more »

2017-07-14 07:07 (1) Answers

CakePHP Migrations Path and Migration Table Name?

This is my first time dealing with anything related to CakePHP. I'm attempting to use CakePHP Migrations to handle version control for future database updates, and there are three different configuration options that I've been trying to track down bu...
more »

2017-07-14 01:07 (0) Answers

Twilio Text to Voice PHP Api

I am trying to implement Twilio Text to voice call programmable APi that should work in the PHP code. I have tried to get work with below twilio documentation provide in this link https://www.twilio.com/docs/api/twiml/say require_once './vendor/aut...
more »

2017-07-13 07:07 (1) Answers

Using composer.phar on wamp64 cakephp3 upgrade

I am using wamp64 and I want to upgrade to the latest stable release of cakephp3. I have current version 3.2.x I ran the command from where the cakephp application called crm is installed. I run this from the docs but it doesnt work. php composer.p...
more »

2017-07-13 02:07 (1) Answers