Questions tagged as 'cakephp'

1
answer

Failed to pass html menu to CakePHP

In the link below I have a perfectly working Menu in Codepen as below link: link Starting CSS #DPrincipais { display: block; } #TrabalhoRendimento { display: none; } #Referencia { display: none; } #Comprovante { display: none;...
asked by 30.11.2017 / 21:09
1
answer

SCRIPT to Convert and Save Addresses

Developed in a REST API with CakePHP a script to convert a $lat and $lng coordinate into formatted addresses. The script checks if the coordinate is saved in the database, if it does not google search and already saved in the database....
asked by 23.10.2017 / 19:29
1
answer

Save int, but display texts

I'm studying Cake and I'm having a question, is there any way I can display a list, but save a number in BD? For example, permission levels: 0 - admin 1 - vendas 2 - Edição 3 - Financeiro In all views should only appear the text, but whe...
asked by 24.08.2017 / 16:15
1
answer

Bake can not find the model and controller files

I am using cakephp version 2.9, to facilitate I decided to leave all applications with a single core. Until then everything ok, but when using the bake to be faster it does not find the files (model, controller) in the folder of the app that I a...
asked by 09.03.2017 / 20:00
1
answer

How to apply two filters in a search field?

I have a nome_email field, where the user types a string and I need to filter everything that is placed in that field and display something corresponding to the NOME or EMAIL of the registered user. Any ideas how to do thi...
asked by 28.12.2016 / 16:10
1
answer

Change admin access URL

Galera, is the following: I create several sites and systems, and most of them exist in the administrative area. I do until then in the basics of being "urldosite.com.br/ admin ". Now, for the sake of security too, I want to start exchanging...
asked by 05.10.2016 / 17:06
1
answer

How to fix the error Impossible to generate condition with empty list of values for field (Tags.title)

I'm playing cakephp 3 by doing the cookbook bookmarker tutorial. I'm implementing the action in controller bookmarks / tags, but when trying to access the error appear the title of the question: Impossible to generate condition with empty list o...
asked by 11.07.2016 / 20:30
2
answers

CakePHP - Relation 1 ~ n

Good evening, I'm having difficulty in CakePHP 3 and the problem is this:    Can not insert row, some of the primary key values are missing. Got (,), expecting (idstorie, users_iduser) The system should add a "Storie" to the DB, in that...
asked by 30.06.2016 / 04:11
2
answers

callback afterFind

Hello, I still can not use afterFind, even following a few posts on the net. Help me in the controller and model, please. I use beforeSave, but I can not use afterFind. I have already put return false or true in the controller method, but it...
asked by 05.01.2016 / 14:51
1
answer

Create link with cakephp inside jquery?

How to create a link using the CakePHP conventions inside JQuery? I'm trying like this but I still can not get it to work. $(document).ready(function() { $('#dataTables-example').DataTable({ "processing": true, "serverSi...
asked by 11.10.2015 / 15:43