Questions tagged as 'cakephp'

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
1
answer

Foreach with the mPDF library

Hello! I have a chatinho problem that I can not solve. I need to include a foreach in my report using the mPDF library, however I did not find a way to do this in the middle of the HTML code that I enter. This is my code: public function gerar...
asked by 05.09.2018 / 21:45
0
answers

cakephp password reset

Hello, I'm trying to make a "forgot my password" for the user to change the password in case he forgets and I'm having problems because he is entering the bank but at the time of login he says that the password is wrong. Follow the snippet of my...
asked by 21.08.2018 / 19:51
0
answers

Worked With Cake php and api via zip

I am having trouble working with api in cake php I am using an api via zip to list me the city and state but and save in the bank the bank structure as table city - > name_city, state, my code is the following sorry for the lack of organizat...
asked by 12.07.2018 / 18:55
0
answers

upload image using tinymce and cake 2

I have an application that uploads images inside of test questions, we use tinymce to put these images but they are not loading, we are using aws to store the images too so necessarily what the code should do is: register the image and insert it...
asked by 20.07.2018 / 21:41
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

How to work with plugins in CakePHP 3.6 or 3.6.1

How to work with plugins in CakePHP 3.6 or 3.6.1. Until version 3.5.13 I worked without problems, installed via composer and loaded with bin / cake plugin load Name But in version 3.6 that was greatly changed, I install without problem wit...
asked by 25.04.2018 / 15: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

How to insert onclick to refresh the page using cakephp (1.3)?

I would like to know how to put an onclick event on a submit to refresh the page after the submit action. the submit code line is this. It includes a new option in a registration. echo $form->submit('Incluir', array('id'=>'botao','div...
asked by 06.03.2018 / 16:58