Questions tagged as 'cakephp-3'

1
answer

CakeBake generating invalid Controller

I am generating a controller by cakebake based on a table called cliente_planos . It generates controller methods using always $this->ClientePlanos , is generating correctly, but no control method works and I found that they only...
asked by 29.08.2016 / 02:43
1
answer

requestAction Cakephp 3

Good afternoon, I would like a help to make a requestAction in Cakephp 3, before in cake2 I would do it this way: <?php $post = $this->requestAction('/Posts/latest'); foreach ($post as $value) : ?> function latest() { return $t...
asked by 13.06.2016 / 22:08
1
answer

How to change the display field of a select using CakePHP3

I'm new to CakePHP and am encountering a difficulty to display the data in the right way. // src/Template/Bookmarks/add.ctp echo $this->Form->control('user_id', ['options' => $users,'empty' => 'Selecione']); The a...
asked by 05.10.2018 / 21:52
1
answer

Retrieve specific field from a primary key via get ()

I'm having a problem retrieving a specific field from the primary key of my database via get() . I have a primary key with two fields: ('Id', 'IdContract'), however, I have not found a way to define which field of my primary key I want to...
asked by 19.09.2018 / 22:13
2
answers

Save the data from the array, not its key

Galera blz ..., I am editing a field to save in db, I send pro edit.ctp the following array $result = array_merge($cones->toArray(), $cda->toArray()); debug($result); // Result: [ (int) 0 => 'Valor 1', (int) 1 => 'Valor 2',...
asked by 25.07.2018 / 18:35
0
answers

CakePHP 3.6.X not working Session correctly

When using Session in CakePHP 3.6.4 it does not read the session data created on other pages, but on the same page it shows the value. echo $this->request->getSession()->write('Ref.url', 'valor2'); echo 'Ref: '.$this->request->g...
asked by 17.06.2018 / 16:15
1
answer

CakePhp 3.6 issuing message deprecated (Accessing data as a property will be removed in 4.0.0.)

I have some code in Php using CakePhp 3.6 that is issuing the following alert: Deprecated (16384): Accessing 'data' as a property will be removed in 4.0.0. Use request->getData() instead. - F:\php\frameworks\cakePhp\bookmarker\src\Controlle...
asked by 01.05.2018 / 17:01
0
answers

Headers Cakephp 3 with Ionic 3

Update: Trying to debug a bit more I found this return as print below. But I followed the steps of the documentation of the plugin git itself. Anyone who can help from now on thanks. **CAKEPHPCode3**<?php/** *CakePHP(tm):RapidDevelopmen...
asked by 10.04.2018 / 03:06
0
answers

CakePHP - Saving associations

I'm trying to save the information in a table, but first I need to get the id's from the records of related tables ... I have the Coordinator table, which has reference to Contact, to save Coordinator, I first need to save Contact and get the...
asked by 20.03.2018 / 05:03
0
answers

TinyAuth Cake 3

Create one module "Admin" in "plugins / Admin" tinyauth not work on my module admin. My AppController in module Admin - > plugin / Admin Error Users are not associated with Roles the relationship are correct public function initializ...
asked by 02.03.2018 / 14:26