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
-
1
votes1
answer141
viewsSave Data Associated with Cakephp 3
Good afternoon. I am trying to save associated data in Cakephp 3. For this I have created three tables: sales(id, customer name), products(id, product) and sales(id, products_id, sales_id). On sale…
cakephpasked 8 years ago Max Porcento 157 -
1
votes1
answer333
viewsSelect populated via ajax when selecting value from another select by sending null to php
I have a select that fills another select via ajax, all values are filled correctly, but when saving, it sends null. First select: <select name="clientesel" class="form-control…
-
1
votes1
answer316
viewsHow to apply two filters in a search field?
I have a field nome_email, where the user enters any string and I need to be filtered everything that is placed in this field and display something corresponding to the NOME or EMAIL of the…
cakephpasked 7 years, 10 months ago Marcos Henzel 797 -
1
votes0
answers87
viewsChat in Cakephp
My colleague and I developed a chat in Cakephp 1.2 (the system is a bit old) using Ajax. But the only problem is that he needs to keep making requests to the database at all times, with a set…
-
1
votes2
answers145
viewsProblems with Bake in Cakephp 3.x "Your database does not have any Tables."
Greetings! I’m trying to generate models, controllers and templates in a Cakephp 3.x project using the Postgresql database. I’ve already created the tables, set up the connection (which is working…
-
1
votes0
answers210
viewsUnknown server error after updating the cake vendor folder
While updating files from my vendor folder on the server I had the following errors: Fatal error: Call to Undefined method Cake View Widget Selectboxwidget::outputError() in…
-
1
votes1
answer54
viewsJavascript index
I have a table where I can add lines dynamically, every time I click the button I add a new row to fill the field, my first row comes with index 0 <td><input type="text"…
-
1
votes1
answer40
viewsFailure to pass html menu to Cakephp
In the link below I have a Menu working perfectly in Codepen as link below: https://codepen.io/FabricioDev/pen/JOmjEg Beginning of CSS #DPrincipais { display: block; } #TrabalhoRendimento { display:…
-
1
votes1
answer111
viewsHow to change the field of a table by referencing values from another table. Using cakephp 1.3
I have an association of tables projeto > auto > anexo. In the project table I have a field cod_status, and in the attached table I have a field status. How do I get when I edit the field…
-
1
votes0
answers37
viewsHow to Put Two Join in One
$this->loadModel('Funcionario'); $id_Defensor = $this->Funcionario->find('list', array( 'fields' => ['Funcionario.id'], 'conditions' =>…
cakephpasked 6 years, 7 months ago Robson Cabral 33 -
1
votes1
answer62
viewstrue giving problem(bug) in code
Good evening guys, I was developing a script in php and when I put true being passed by parameter to a function inside an array dynamically , he gave a bug. I can not explain the bug right, but the…
-
1
votes0
answers88
viewsI’m unable to do INNER JOIN in cakephp
All right, guys? I’m using cakephp to make a system that interacts with some database data from a Wordpress site however every time I try to perform an Inner Join cake query shows me this error:…
-
1
votes0
answers40
viewsHow to authenticate with Cakephp 3?
I’m trying to authenticate with Cakephp, according to what I saw in the framework documentation. What is currently happening is that my first user, with id 1 enters normally in the application, but…
-
0
votes2
answers1228
viewsUsing Ajax in Cakephp 2.0
I cannot use the normal syntax of Ajax in the Cakephp. I’ve seen some things about Jshelper, but I can’t do what I want. What can I call a action of controller for Ajax sending certain data and then…
-
0
votes2
answers1675
viewsPHP framework with greater similarity to Codeigniter?
Which of these frameworks below have greater similarity to Codeigniter, so I can have the smallest learning curve? Laravel Cakephp Zend
-
0
votes1
answer263
viewsConfigure Cake Bake for Cake Version 2.x
I have a Cake 2.3 Library on my Ubuntu 13.10 configured and running normally. When I try to use cake Bake, it automatically takes over Cake 1.3 Welcome to CakePHP v1.3.14 Console Question: How do I…
-
0
votes1
answer90
viewsCakephp ignoring my Model
Why is cake ignoring my Model? I don’t understand. I have several other models working perfectly, but this one is not working. It is being ignored. Model name: Typeobservacao.php Contents of the…
cakephpasked 10 years, 8 months ago morphinduction 473 -
0
votes1
answer67
viewsCSS for the Timthumb plugin for Cakephp
Is there any way to apply classes CSS the thumbnails created by the plugin Timthumb to the Cakephp? The attribute 'class' causes an error. Code…
-
0
votes3
answers845
viewsHow to view alphabetically - Cakephp
I’m listing neighborhoods, when I select instead of taking the list value, the json_encode is returning to her position. ex: -BARRIO I -WARD II If I select the "NEIGHBORHOOD II", it will return me:…
-
0
votes1
answer240
viewsProblem logging in using Cakephp on session_regenerate_id()
Testing at home, my Cakephp project works perfectly. But when running the same project on the site, with the appropriate changes, as expected it presents a slightly different behavior. But a problem…
-
0
votes2
answers799
viewsFatal error: Cannot unset string offsets
After uploading my website, the form for inserting images stopped working, when clicking the save button I get : Fatal error: Cannot unset string offsets in…
-
0
votes2
answers1308
viewsPassing Appcontroller variables to Elements in Cakephp
You can pass variables originating from Appcontroller’s callback through the method set for Cakephp layout Elements?
cakephpasked 10 years, 5 months ago Marcelo Aymone 3,366 -
0
votes1
answer343
viewsHow to save a HABTM after save to controller?
I have a table on Users HABTM Solicitations. After saving my request, I want to include a new data in the table solicitations_users if($this->request->is('post')) {…
-
0
votes1
answer49
viewsSending form
I am trying to send a contact form, which uses the model "Contact", save the data, however, it does not enter the: if (!empty($this->data)) { $this->Contato->save($this->data) } From the…
cakephpasked 10 years, 3 months ago helderburato 1,019 -
0
votes1
answer107
viewsRoute Translation with Cakephp
I’m studying Cakephp for possible use in a project, and the crux of this project is that it’s multi-language. Only I’ve done a lot of research on route translation: http://projeto.com/contact…
-
0
votes1
answer217
viewsCakephp problems with . htaccess
I made the publication of the project, ran correctly, however, the other projects that were at the root stopped working, I checked and from what I noticed the problem is in . htaccess, which is so…
-
0
votes0
answers38
viewsImages missing on site with Cakephp
I recently picked up a site developed in Cakephp. I migrated it to 2 different servers and the site worked normally. When I went to migrate to a third server, it simply no longer generates the…
cakephpasked 10 years, 1 month ago Wlisses Guerra 9 -
0
votes2
answers129
viewsUndefined Index
I’m having an error passing the data from the database to the view, only the code is pretty much the same as the one I have, and it works correctly. The Array with the data is also being sent to the…
-
0
votes1
answer301
viewsHow do I create an external link using cakephp?
A link of the type below serves to link to a page(view) of our own system: <?php echo $this->Html->link('Listar todas as tarefas', array('action'=>'index')); ?> And if I want to link…
-
0
votes1
answer1137
viewsTake data from a specific cakephp field
Etou starting now with Cakephp, and I’d like to know how to get the value of a specific field. For example, I have the name and email fields. How to get the name field value? PS: I know you have the…
-
0
votes1
answer69
viewsCakephp Auth Does Not Allow Timthumb to Work
I have a gallery that worked properly, but after doing user restrictions with the Auth, thumbnails stopped showing the image, but when I delete function beforFilter(), public function…
-
0
votes1
answer142
viewsProblems Relating Models in Cakephp
This and the Model User class User extends AppModel { public $name = 'User'; public $useTable = 'users'; public $displayField = 'name'; public $belongsTo = array( 'Role' => array( 'className'…
-
0
votes1
answer834
views -
0
votes1
answer200
viewspick number of results of a query with the database using cakephp
I want to make a loop to show the results of a database query, and get the number of results found in the query. I’m using the cakephp. Does it have any function that does the same thing as the…
-
0
votes1
answer92
viewsRelationship of Tables with Cakephp
I have two tables: artigos (id, categoria_id, titulo, texto, criacao) and categorias (id, nome). And they have a relationship (artigos.categoria_id => categorias.id). And I am doing CRUD, but I…
-
0
votes2
answers136
viewsCakephp indicates that Phpunit is not installed
I need to rotate the phpunit with cakephp to perform unit tests, but despite having installed and configured the phpunit correctly through the beg, it seems that the cakephp does not recognize him.…
-
0
votes2
answers847
viewsGenerate PDF from filters in Cakephp
In a management page it is possible to filter by Company, User and between two dates. How to generate a PDF when the user clicks the button based on the filters used or then from the Database table?…
-
0
votes1
answer196
viewsCakeemail sends email without message
I’m trying to make a form to send an email. This is sent correctly and with the name of the person, who is inserted in the form, in the right place, in the email Subject. However neither the email…
-
0
votes1
answer164
viewsUpgrade with HABTM model - Cakephp
I am having trouble entering or changing data using the HABTM model, it does not recognize 3 fields, but is recognizing hidden fields normally. Follow the files with programming, are 3 tables, one…
-
0
votes1
answer133
viewsIt’s a bug in Cakephp - Sort Aliases?
I’m trying to sort a query by relevance with cakephp using Paginator, but simply it ignores the alias, I already searched the manual but so far I haven’t found the solution, the query works…
-
0
votes2
answers80
viewsCAKEPHP: conditions with AND
I have a question when making a search. The item conditions in my current query is this way: 'conditions'=>array( 'Produto.publicado'=>1, 'Produto.titulo LIKE'=>"%$kw%",…
-
0
votes3
answers277
viewsElement cakephp
Hello, I actually need a help, I have a view that has an element, only that this view is used for all pages of my site, only, on some pages I do not need the element,but I need to use the view, it…
-
0
votes1
answer448
viewsCakephp Passing Information Between Controllers
How do I pass information between two controllers, example: I have in my database two tables, one of users and another of books, then I select a book that is in the books table, I take your id and I…
-
0
votes0
answers135
viewsCakephp SQL SERVER
I’m in big trouble here. I have a cakephp application hosted on the Windows server. The following problem is happening: The save method of NO model is working. In debug I search for validation error…
-
0
votes2
answers53
viewsForm::Cakephp Helper
As if I do a for return in this options 48 weeks? <?= $this->Form->input('Semanas', array( 'options' => $semanas, 'empty' => '(choose one)' )); ?>…
cakephpasked 9 years, 7 months ago Roberto Schon 39 -
0
votes1
answer150
viewsCakephp: Upload Error
I am unable to move my images let alone detect the error in the code, and no error messages are displayed on the screen My Model Photo: public $validate = array( 'uploadImg' => array(…
-
0
votes0
answers42
viewspathinfo with cakephp
Hello, I made an image upload system, in which, saved images, are saved with $id_o.$extensao = 1_o.jpg , now, I am creating an element, that with this image name, return me the relative path of this…
cakephpasked 9 years, 7 months ago Michel Henriq 647 -
0
votes0
answers44
viewsRedirect error
On a client server you have a project in Cakephp, I created a folder called halldafama at the server root. I need to access this folder, only when trying to access me returns: Error: The requested…
-
0
votes1
answer69
viewsCakephp is ignoring my model
I have an "Admin" plugin and in it I have the following: Userscontroller.php (Userscontroller), User.php (is the Model User). In this case, I am saving user data, the controller correctly saves the…
-
0
votes1
answer179
viewsGrab main image of the last post in Wordpress
I need to display the latest post posted Wordpress blog in a Cakephp application and am doing it as follows: $post = $this->Post->query( "SELECT posts.id, posts.post_title AS title,…