Posts by Fred Sousa • 121 points
2 posts
-
1
votes1
answer363
viewsA: Cakephp 3 - How to sum column values amount of multiple rows and display the result in the view?
You can use the function SUM() SQL and cakephp’s ORM gives you easy access to it. In your case, within the controller, you can do the following: use Cake\ORM\TableRegistry; //Sua classe de tabela,…
-
1
votes1
answer774
viewsA: Upload file with Cakephp
You must keep the ['type' => 'file'] as one of the parameters present in the create() method when creating a form that must upload files, otherwise the file will not be transferred.…