Questions tagged as 'cakephp-3'

0
answers

Error when hosting site, which does not appreciate when testo in localhost

I'm trying to upload a website that I made using cakephp 3.5.10. The site is working normally on my PC, the problem is when I try to put it online in the hostgator, which gives this error: Parse error: syntax error, unexpected T_STRING, expect...
asked by 06.02.2018 / 12:20
0
answers

File download on base 64 (Controller)

I have the following situation: I have a View that calls a link to Controller to download the file (without leaving the page). I was able to make it work by reading the file from the server, but what I am trying to do is to return...
asked by 02.02.2018 / 21:04
0
answers

Improve MySQL COUNT performance

I have a web application that performs several queries, however a count query is taking 2 seconds to fetch and return the data to the application. My table in which I do COUNT has 230,000 lines with about 20 columns, how can I optimize this quer...
asked by 19.06.2017 / 01:07
0
answers

API on existing system bank

I have a question, in our company we have a system, developed in MySQL and Delphi, this system is developed by a company, and we have several development projects, several new systems (created within our company) are made with CakePHP, we are pla...
asked by 20.06.2017 / 18:39
1
answer

CakeDC / Users - Types of users

I've implemented the CakeDC / Users authentication plugin and want to add other types of users to my system. I currently have only the two default permissions: superuser and user. I'm doing permissions control through the permissions.php f...
asked by 04.07.2017 / 19:43
1
answer

Query Counter

I'm learning about cakephp and would like some help. I have to do the sum of a column in my table (Use Postgres). I'm trying to use the sum () function of the cake itself. My controller use Cake\ORM\TableRegistry; public function ind...
asked by 02.06.2017 / 01:58
0
answers

Cakephp 3.3 links are receiving the url "var / www / html"

I have the following problem, in the implementation of the site all the links that were generated by the cakephp functions such as: <?= $this->Html->image('logo.png', ['url'=>'/', 'id'=>'logo']) ?> They are receiving va...
asked by 02.04.2017 / 13:32
1
answer

CakePHP: Problems with route and pagination

I have a problem with the CakePHP routes. I have the following URL: link And it works normally. The problem is when I go to the second page: link Error: The requested address '/Produtos/index/61/789/page:2' was not found on t...
asked by 25.01.2017 / 21:12
1
answer

Creating cakephp route 3

Intention: access link I created the route Router::scope('/api', function (RouteBuilder $routes) { $routes->extensions(['json']); $routes->resources('Usuarios'); }); is working, but when I access the address link w...
asked by 17.07.2016 / 09:04
1
answer

Use cmd commands in scripts made to run in shell - cakephp 3.0

I was wondering if you have how to use native windows CMD commands, from scripts made to run in the cakephp shell. I already run tasks that run in cmd, but with the commands of the framework itself but would like to use other commands.     
asked by 31.05.2016 / 22:22