Most voted "cakephp-3" questions
Cakephp 3 is a framework for web development in PHP. Cakephp 3 is currently supported in versions equal to or greater than PHP 5.4. If the doubt isn’t about Cakephp 3, don’t use this tag, even if you’re using Cakephp 3 in your project.
Learn more…71 questions
Sort by count of
-
0
votes0
answers212
viewsImprove performance of COUNT Mysql
I have a web application that performs several queries, but a Count query is taking 2 seconds to search and return the data to the application. My table where I perform COUNT has about 230 thousand…
-
0
votes0
answers129
viewsAPI in existing system database
I am with a doubt, in our company we have a system, developed in Mysql and Delphi, this system is developed by a company, and we are with several development projects, several new systems (created…
-
0
votes1
answer52
viewsCakedc/Users - Types of users
I have deployed the Cakedc/Users authentication plugin and want to add other types of users to my system. Currently I only have the two default permissions: superuser and user. I am controlling…
-
0
votes1
answer53
viewsCan Cakephp 3 be used to create screens to manipulate CRON like Sidekiq?
Have some way to create screens to manipulate CRON PHP with Cakephp3 as we have the sidekiq option for Ruby on Rails? It would be interesting to be able to list the active Jobs, and also the option…
-
0
votes1
answer33
viewsRetrieve specific field of a primary key via get()
I am facing a problem at the time of recovering a specific field of primary key from my database via get(). I have a primary key with two fields: ('Id', 'Idcontrato'), however, I have not found a…
-
0
votes0
answers8
viewsHow to run Cakephp Migrations ONLY in my development environment?
I am working on a project that has three different environments: Live (project in production) Staging Development I created a Migration that creates the table teste, however, instead of creating in…
-
0
votes1
answer114
viewsUpdating of several Models and a single Cakephp 3.x form
I’m having trouble upgrading more models in the same form in cakephp, I’ve done several different modes and in all the main model is inserted/updated but the related model is not. My controller is…
-
0
votes1
answer56
viewsRelationship between tables causes error: "Unknown column 'Sectors.name' in 'Where clause'"
I have a relationship between 2 models: Ramais and Setores, and print the data of the 2 on the screen, but I need to run a Search field, but I was only able to search the data of the table Ramais,…
-
0
votes1
answer103
viewsCakephp: Problems with routing and paging
I have a problem with the routes of CakePHP. I have the following URL: http://www.nomedosite.com.br/Produtos/index/61/789/ And it works normally. The problem is when I go to the second page:…
-
0
votes2
answers1510
views"No 'Access-Control-Allow-Origin' header is present" cakephp
Good morning, everyone I’m making an application with angular and cakephp. I am trying to make a request for the backend and the following message appears on the console: Xmlhttprequest cannot load…
-
0
votes1
answer296
viewsSave cakephp associations 3
I am trying to save associated data in Cakephp 3, in the database I have two tables tabela entidades(id, nome_principal) and enderecos(id, entidade_id, cidade) In EntidadesTable i performed the…
-
0
votes1
answer53
viewsContrutor de Queries
I am learning about cakephp and would like a help. I have to do the sum of a column in my table (Postgres use). I’m trying to use the sum() function of the cake itself. My controller use…
-
0
votes1
answer218
viewsBringing pre-selected radio button option via Cakephp
I got the following Form down below. If I pass checked=checked it brings the last selected option. But, I want for example that the first option is preselected, some hint/suggestion? <?php echo…
-
0
votes1
answer317
viewsCakephp 3 Permissions - Authentication
Good afternoon, Someone who has already needed to use the restrictions for the user via bank in an editable way that can help. At first I followed the initial tutorial creating the user tables and…
-
0
votes1
answer109
viewsCakephp 3.6 sending deprecated message (Accessing data as a Property will be Removed in 4.0.0.)
I have some code in Php using Cakephp 3.6 that keeps sending the following alert: Deprecated (16384): Accessing `data` as a property will be removed in 4.0.0. Use request->getData() instead. -…
-
0
votes2
answers100
viewsSave the data from the array and not your key
Galera blz..., I am editing a field to save to db, I send to Edit.ctp the following array $result = array_merge($cones->toArray(), $cda->toArray()); debug($result); //Upshot: [ (int) 0 =>…
-
0
votes1
answer48
viewsSave JS Data to DB
I need to save a value of a JS Variable in the database, but I have no idea how to do it. I have a page that captures the user’s location , this location comes as a javascript object, and I have no…
-
0
votes1
answer50
viewsOpen new page automatically in php with result from previous page
Next person I have a quiz and at the end a button Submit, when clicking I do some php operations to return a result of the quiz, but returns on the same page, with all questions of the quiz, I need…
-
0
votes0
answers18
viewsUsing Datatables in cakephp
I wonder if anyone has any examples of how to use Datatables (server-side Processing) in cakephp (version 3.0 onwards). I was able to do it in php and it’s working. However, when I try to use the…
-
-1
votes1
answer67
views -
-1
votes1
answer109
viewsSave entities related to cakephp-3
I don’t understand why related entities aren’t working with cakephp, for example: I have a company entity, and this company has a user. In my view, the company values correctly put…