Questions tagged as 'cakephp'

0
answers

Access external webservice with cakephp

I'm trying to make requests in external WebServices with Cake's HttpSocket, the documentation has this example $HttpSocket = new HttpSocket(); // string query $results = $HttpSocket->get('https://www.google.com/search', 'q=cakephp'); // a...
asked by 13.11.2017 / 23:47
0
answers

Unknown server error after updating cake vendor folder [closed]

When updating the 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   /var/www/vhosts/domain/em>.com.br/vendor/cakephp/...
asked by 05.07.2017 / 19:32
2
answers

Problems 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 already created the tables, I configured the connection (which is working, according to the default homepage of Cake),...
asked by 23.04.2017 / 03:08
0
answers

Chat in CakePHP

My colleague and I developed a chat in CakePHP 1.2 (the system is somewhat old) using Ajax. But the only problem is that it needs to be making requests to the database at all times, with a defined interval, in search of new messages, more or les...
asked by 27.03.2017 / 14:27
0
answers

Recognize date text in Brazilian format

Does anyone know of any way to recognize Brazilian date text like today, tomorrow, 04/30 ... in PHP using the strtotime or CakePHP using CakeTime . I'm trying to get the same result using strtotime('amanhã') of when...
asked by 04.04.2017 / 20:02
0
answers

Websocket and CakePHP

How to integrate Websocket into a CakePHP 1.2 system running on an Apache server with a PostgreSQL database? I need to do a chat, and all the conversations will be saved in this bank, separated by system users, like Facebook. The current c...
asked by 28.03.2017 / 16:58
1
answer

Print message on next page

How do I print a message when opening a page, for example: I'm on page Cliente/View and when I'm redirected to Nfe/index page, I want to print a message with instructions on what to do, pulling some data from Cliente/View...
asked by 08.02.2017 / 13:42
1
answer

How to use 2 or multiple connections in CakePHP 3.x?

I'm doing a system where it takes information from 2 different databases, how can I get the data and differentiate them in the CakePHP 3.x controller and view? Thanks for the help.     
asked by 29.12.2016 / 16:52
1
answer

Select filled via ajax when selecting value from another select sending null to php

I have a select that populates another select via ajax, all values are filled correctly, however when saving, it sends null. First select: <select name="clientesel" class="form-control js-example-basic-multiple" id="clientesel" >...
asked by 21.12.2016 / 18:17
1
answer

Save data associated with CakePHP 3

Good afternoon. I am trying to save associated data in CakePHP 3. For this, I created three tables: sales (id, customer_name), products (id, product) and sales_products (id, id_products, sales_id). On sale table I realized the association:...
asked by 08.11.2016 / 18:19