Most voted "cakephp" questions
Cakephp is a framework written in PHP whose main objectives are to provide a framework that enables PHP programmers of all levels to develop robust applications quickly, without losing flexibility. Cake-PHP utilizes well-known software engineering concepts and design standards such as Activerecord, Association Data Mapping, Convention on Configuration, Front Controller and MVC (Model-View-Controller).
Learn more…376 questions
Sort by count of
-
0
votes1
answer67
viewsReturn of consultation in descending order
With this code, how do I make the return of the query come in order decreasing? <?php session_start(); include_once "conexao.php"; ?> <!DOCTYPE html> <html lang="pt-br">…
-
0
votes1
answer31
viewsTreat array in Cakephp 3 controller
So people I have two controllers, sales and sales products, in which in the products sales I select product with checkbox and shipping by a buttom to another page, and in the product controller…
-
0
votes1
answer77
viewsCakephp 3 Auth Component Does Not Work
I’m having problems with the cake authorization component, I’ve done several tests and it’s the only component that isn’t working, I’ve checked the bank authorization, and I have authorization…
-
0
votes2
answers44
viewsHow to Improve/Optimize this code?
I have the following code, and I would like to know if it has how to improve, and how to improve this code: $user = $_SESSION['nome_usuario']; $data = date('Y-m-d H:i:s'); $lote =…
-
0
votes1
answer377
viewsCakephp error: Class 'mPDF' not found
I installed mPDF by the prompt on the Friends Of Cake github, and followed the instructions as on the github, but it is giving mPDF class error not found and line error $mpdf = new mPDF();, giving…
-
0
votes0
answers20
viewsCakephp 3 Download Large Files
I have the following problem. My Cakephp 3 application stores some BIG files (200mbs), uploaded via FTP. These files are in a folder outside of my project. When you click on the download link, it…
-
0
votes0
answers9
viewsRelease value in a select only if you have already selected another select in cakephp
Hello I have a select called tipo_examand I need another select, called exame_pericia, the select exame_pericia should only be available after I select some value in select 'tipo_exame', other…
-
0
votes0
answers19
viewsView cake variable value in html
Hello, I have a form and would like to know how I can display the value that is in a variable of cake, in my html code, to display in edit. Explaining better: When registering a new data, I can…
-
-1
votes1
answer97
viewsWhat does this chunk of PHP code do? My validations fail because of it
I’m working on a project that I’ve already picked up in progress and I’m having trouble displaying data for certain validations. I need to understand what this line does: foreach ($queries as $id…
-
-1
votes1
answer280
viewsCakephp Site Server and Domain Change
I developed a website in Cakephp and had to change it to a domain and server. I passed the files to the server and configured the database files in the folder app/config/database.php. All right,…
-
-1
votes1
answer59
viewsDoes postLink method not exist in Cakephp version 2.4.4?
I am trying to use the postLink method to delete images using the name of these. However Cake gives me an error saying :Warning (512): Method Htmlhelper::postLink does not exist [CORE Cake View…
-
-1
votes1
answer519
viewsInvalid argument supplied for foreach()
I get this mistake: Warning (2): Invalid argument supplied for foreach() [CORE Cake Utility Validation.php, line 490] using the admin_upload_image action from my Galleries controller. But this…
-
-1
votes2
answers2573
viewsDropdown does not work
I have a dropdown menu that shows links to the gallery and videos, however, if you’re in a view other than index.ctp the dropdown no longer works. But if I take dropdown.js of the "source code"…
-
-1
votes1
answer327
viewsCakephp 3 - Model relationship problem
My problem is basically this: I’ve linked 2 models to the official Cakephp 3 documentation and I can’t return one of them in the view (now Template in Cake 3). The Code: Work - Entity namespace…
-
-1
votes1
answer26
viewsHash of some Cakephp2 field
I generated some scaffolding tables from Cakephp2, I have a model called account and created a Setter and getter: public function setPassword($password) { $this->password =…
-
-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…
-
-1
votes2
answers53
viewsHow to give an echo in the sport?
Array ( [0] => Array ( [Planos] => Array ( [id] => 57 [nome] => test [descricao] => test [valor] => 1.00 [status] => 0 …
-
-1
votes1
answer14
viewsAuth Indentify does not work Cakephp
This same code has already been used for other projects, and I don’t understand why it doesn’t work here. The error that returns me is that the Users and password are incorrect, it does not pass the…
-
-1
votes1
answer18
viewsRelate the indices (keys) of an obejto Array to the indices (keys) of an array (PHP)
I have a question where I could not find a solution. I have an Array object values and an array status, where I want to relate the indexes of the Array object values to the indices of the array…
-
-1
votes2
answers22
viewsChanging order quantity - Cakephp 3.8
Friends, I’m trying to update the quantity of products in an order cart. My index.ctp is like this: <html> <body> <main class="mt-1 pt-1"> <div class="container wow fadeIn">…
-
-2
votes3
answers5038
viewsUpload Images with PHP - Mysql
I need to upload an image in Mysql, IE, the image path, has some practical method of doing?
-
-2
votes1
answer185
viewsSite opens in webroot folder
The site I’m putting online is presenting http://mysite.com/app/webroot/ every time www.mysite.com on the way to access it. However I wanted it to just go to http://mysite.com/, where is the view…
-
-2
votes1
answer29
viewsError saving with cakephp
Hello. I do not understand why this error. The code is apparently correct. https://pastebin.com/3NZwmFMM Follows print of error: https://uploaddeimagens.com.br/imagens/print_erro_firefox-jpg The…
cakephpasked 7 years, 5 months ago André Nascimento 1,258 -
-2
votes2
answers155
viewschange Cakephp 4 Authenticator userModel
I am using a table named ga_usuario for access management, I generated the skeleton with Bake in cakephp and the controller became Gausuariocontroller, the problem is that when I log in it says that…
-
-2
votes0
answers11
viewsAccentuation in Cakephp
Hello, my dear! The doubt below is well Noob, but it’s burning my neurons... I recently installed Cakephp 4.2.8, PHP 7.4.9. I’m walking through the Cakephp tutorial, and I made a Bake for one of my…