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
-
2
votes1
answer382
viewsCakephp - Recover option value
Hello! I’m fixing a website that I picked up ready and in it has a part that the user selects a neighborhood in a <option>, however, this <option> is not sending the information to the…
-
2
votes2
answers687
viewsSet <option> in edit - CAKEPHP
I’m working on a real estate project and in it I have the add, edit and delete, everything is normal. In real estate I have tables cidade and bairro, that when I register there are two…
-
2
votes1
answer65
viewsUsing a Component inside a Shell Console in Cakephp
Can anyone tell me how to use a Component I created in cakephp within a cake console script? I tried using App::import but could not. For example in a normal controller I can use my Component as…
-
2
votes2
answers993
views -
2
votes1
answer798
viewsCakephp Auth Component Does Not Work Properly
I am making a user registration screen. When the user completes the registration, it is redirected to a restricted area. On this same screen, there is a login and password field for them to log in.…
-
2
votes1
answer219
viewsHow to get the link id present in the postLink method?
I need to get the id link present in the method postLink in order to delete from the database an image id is equal to this link id, which is equal to the database id. How do I get that value? View…
-
2
votes0
answers20
viewsHow do I pass vectors from one controller to another in cakephp?
I wonder if you have how to go from one controller to another passing parameters. For example: I have an array with information in one view and would like to send it to another controller. How to do…
-
2
votes0
answers28
viewsDeactivate Securitycomponent - Cakephp + Croogo
I am developing a plugin for Croogo, and need to create only one more field text, nodes. The field appears in the Nodes tabs and is ok, but my problem is when I am saving the data, a security error…
-
2
votes1
answer57
viewsProblems to define new route
I can’t access my controllers through the url. I already set the routes, but from what I saw, instead of calling the Controller I put in the url it’s calling the action AN EX:…
-
2
votes1
answer348
viewsCake php configuration
I set my cake all right, but when I open the main page, its css does not load, someone can help me?…
-
2
votes1
answer1337
viewsHow to use beforeSave in Cakephp 3?
I’m trying to get the image array to handle In Cakephp 2, I was like this: public function beforeSave($options = array()) { if(!empty($this->data['User']['picture']['name'])... Could someone…
cakephpasked 9 years, 6 months ago I Wanna Know 907 -
2
votes1
answer132
viewsDropdown with "default" value and "all" option
Using Cakephp in my project, I created a dropdown to use to search the database by values and strings. I need to create an "all" option to search for all results and to be the "default" option of…
-
2
votes0
answers92
viewsError creating and downloading XLS with Cakephp
I have the following code: $this->autoRender = false; $this->autoLayout = false; $turmaId = base64_decode($turmaId); $turma = $this->Turma->find('first',array( 'conditions'=>array(…
-
2
votes0
answers43276
viewsConfirm ERR_CACHE_MISS form resubmission by going back to previous page?
Staff after I fill out a form and send to the database via POST, and after that go to another page, when I return to this form by the browser "<-" this error occurs on the screen: "Confirm form…
-
2
votes1
answer1229
viewsRegular expression for href and www/https/http links
Good morning, I have 2 regular expressions, where one serves to get the URL of any href, and another that I need to arrange that would just be to get the URL’s that are not inside a href, ie, only…
-
2
votes1
answer288
viewsRecursive in Cakephp - Explanation
I would like to know, for example, how the recursive cakephp. $this->Model->recursive=2; What he does exactly, in practice?
-
2
votes1
answer251
viewsHow do I resolve this Cakephp issue on my Mac?
Warning: require(/Applications/XAMPP/xamppfiles/htdocs/cake-teste/bookmarker/vendor/autoload.php): failed to open stream: No such file or directory in…
-
2
votes1
answer184
viewsPhpunit not recognized by Cakephp
Now with the discontinuation of Phpunit support by Pear, I started to face a big problem to make Cakephp recognize Phpunit... Phpunit is already installed on my computer (Linux Mint), I can use it…
-
2
votes1
answer70
viewsResolve Undefined namespace Mailer Cakephp 3.0.3
I’m trying to create a Email Reusable provided by Cakephp 3 but still following the documentation but I have the following error: use Cake\Mailer\Mailer; Error: Undefined namespace Mailer Referenced…
-
2
votes1
answer180
viewsGet value from a radio in jquery cakephp
In my code I have a radio and would like to get the option selected in a variable in my jquery function. Button input: <?php echo $this->Form->input('attendance_status_id', array( 'type'…
-
2
votes1
answer75
viewsPlugin cakephp-file-Storage 3.0 does not run and does not display Error
Following the installation tutorial of cakephp-file-Storage 3.0 plugin (which aims to give you the possibility to upload and store files in virtually any type of backend storage) but did not succeed…
-
2
votes1
answer154
viewsValidate Google Site Verification URL with Regex
With $_SERVER['REQUEST_URI'] I capture the following address below! /google9f7804416f93fdd6b.html I need to perform a validation with ER, the function has to recognize the word Google the parâmetros…
-
2
votes2
answers1986
viewsAccess data from an Array that receives 2 Arrays
Let’s say I have an Array $testes that receives 2 Arrays $variavel1 and $variavel2. So I do $this->set('testes', $testes) to use in the view. In View how I access the values of $variavel1 and…
-
2
votes0
answers92
viewsPaging
In my controller I limit to 7, but when he makes the pagination, the first page comes with 3, 4, 1, and goes varied. public $paginate = array( 'limit' => 7, ); That’s what I do on my controller,…
-
2
votes0
answers30
views$cordovaFileTransfer does not send parameters to webservice?
I’m trying to upload an image using $cordovaFileTransfer. When I send the image I want to send tbm some parameters like the user id, the problem is that these parameters arrive null in the…
-
2
votes0
answers95
viewsHow to insert async and Defer attributes without the value with Cakephp 3?
I’m using the PHP Cakephp Framework 3.0.3 and would like to know how to insert the keywords Defer and async script tags and omit values: How script insertion is done with the framework: <?=…
-
2
votes1
answer222
viewsWhere Appropriate to Allocate Javascript and CSS Libraries in Cakephp 3
What is the appropriate location to allocate libraries and plugins Javascript and CSS in Cakephp 3, as there has been a major change in the directory structure from this release to earlier. All…
-
2
votes1
answer80
viewsPHP build-in class does not work in Cakephp 3.0
I’m trying to use a class Built-in of PHP inside Cakephp but a: Error: Class 'App Controller Component Datetime' not found Where it’s being used: public function listNewBanners($newBannersQuantity)…
-
2
votes0
answers195
viewsProblems when migrating Cakephp site between servers
I’m trying to migrate the site between servers, but to validate the functioning of the site, downloaded and I’m trying to install on Wamp. I have no experience with the framework Cake. I already…
-
2
votes1
answer179
viewsAccess method using Dash (-) in Cakephp URL 3
I have a signature method: public function mostPopular() I’m trying to access it via URL as follows: products/most-popular but I am being directed to a Error page: The action Most-popular is not…
-
2
votes1
answer268
viewsHow to remove 'Invalid username or password, Try Again' message from Cakephp login page?
I started using the cakephp recently and created a login for my project. The login works perfectly, but is always displaying an invalid user or password message. What can I do to display this…
-
2
votes1
answer967
viewsPHP: How to convert a number into a string?
I have an application that generates a PDF receipt. But in the bank the values have to be converted into words BD | PHP 10 | TEN 15 | FIFTEEN 7 | SEVEN there is some function that returns the string…
-
2
votes1
answer138
viewsError while using Git on Ubuntu
So, I am currently using the Ubuntu 15.04 operating system to develop my daily activities. I have a PHP web project where I use the Cakephp 3 Framework and version my project in Bitbucket. My…
-
2
votes1
answer94
viewsCakephp Submit form using Jquery?
I have a form in Cakephp and I want to make the Submit of this form using Jquery. I’m looking for a solution on how to do this without using Cakephp’s Jshelper, I want to use only the same native…
-
2
votes1
answer8587
viewsTesting app locally in the browser?
I am trying to develop a hybrid application using Ionic and Angularjs and for that I am testing in the browser. When I do ionic serve it creates a local server with the address localhost:8100/#/main…
-
2
votes1
answer72
viewsLeave Component Following Cakephp’s Pattern
How can I improve this Cakephp 3.0 Component (inside the controller folder) Question discussed in: Post functional code in stackoverflow for refactoring? first: to use external libs (stored in…
-
2
votes0
answers57
viewsCakephp "action" with multiple functions
I have a few points on how I can improve this "add action" (method) in my "controller": Some descriptions: In the system the user can upload aProduct in a single form, in the system a Product is…
-
2
votes1
answer955
viewsHow to translate cakephp 3
I managed the default pot. , created the folder pt_BR in: http://book.cakephp.org/3.0/en/console-and-shells/i18n-shell.html /src/Locale/pt_BR/default.po and put in config/app.php 'defaultLocale'…
-
2
votes0
answers238
viewsDoubts about Bradesco boleto integration
I’m having doubts about how to integrate this Bradesco payment solution. That’s the documentation I don’t know if it’s via POST, via GET, if it’s via XML. I’m confused.. I tried something like this…
-
2
votes1
answer350
viewsProblems installing cakephp on linux Ubuntu 16.04
I’m having trouble installing cakephp on linux. When I run the command composer create-project --prefer-dist cakephp/app [app_name] appears the following error message: Installing cakephp/app…
-
2
votes2
answers46
viewscakephp login never recognizes
I’m studying Cakephp and created a project to train login, but no matter what I do, login/ password always denies access. here are the codes public function initialize() { //appController…
cakephpasked 7 years ago Horacio Neto 169 -
2
votes0
answers38
viewsForm for a different model
I’m using Cakephp 2.6.4. I have two tables in the database: despesas and receitas. I have the CRUD methods of spending and revenue. I created the controller RelatoriosController for detailed reports…
-
2
votes1
answer153
viewsCreate PHP Infinite Menu
I’m trying to create an infinite menu, I’ve assembled the object the way I need to, but I can’t print it. It must be something like this: User User > User1 User > User2 User > User2 >…
-
2
votes2
answers187
viewsWhen selecting checkbox it selects other checkbox
I am not aware of Javascript and I am using Cakephp 3 framework. So my problem is, I have a list where each item on the list has 2 checkbox, and when I select the first checkbox for one item it…
-
1
votes1
answer102
viewsHow do BETWEEN in CAKEPHP?
I’m making a query in the database and need to get information between two column values valor within the specified quantity. For example: Between the valorMinimo 300 and valorMaximo 600 $imovel =…
-
1
votes1
answer207
viewsHow do I get a list of all actions from all controllers, including plugins?
I’m trying to get all the methods/actions of all the controllers from my Cakephp application. Turns out I can’t bring the methods of all controllers and I don’t understand why. I tried to import…
-
1
votes2
answers349
viewsDesign table of "workflow"
I’m doing an application in Cakephp and would like your help in what would be the best way to create my database and my relationship between models. It would be a "workflow". I would like it to work…
-
1
votes2
answers131
viewsIn Cakephp associations, how do you change the relationship key?
In Cakephp associations by default it always does the relationship being the model name in the singular followed by _id, i.e., model_id. It is possible to change this relationship key to another…
-
1
votes2
answers80
viewsTaking the last position on the bench
I need to get the last row of a column using Cakephp. I’m trying like this: $idAtual = $this->Albun->find('all', array('fields' => 'codigo')); Only he’s returning all the lines. How to get…
-
1
votes1
answer220
viewsCakephp Does Not Display Special Characters Present in Database Content
I get something like: Produ��es - Casamento Catarina & Lu�s _ Caves Taylor�s But the wait was to get : Produções - Casamento Catarina & Luís _ Caves Taylor's This only happens with database…