Questions tagged as 'cakephp-3'

2
answers

PHP Matrix how to fill

I want to fill this matrix. It works, but when I try to put more than one result on a single line, only the last one appears. How to correct? <h1>Mapa</h1> <?php $linha=0; $coluna=0; //preencher o mapa //debug($planeta); $m...
asked by 10.08.2015 / 02:17
1
answer

How to make the homepage of a website using CakePHP 3.0

How should a site's home page be made using the CakePHP 3.0 Framework (3.0.3)? This page has dynamic content. What this page consists of: It is a display page for key products and product categories (both searched by the bank), and it will di...
asked by 23.07.2015 / 19:20
2
answers

Difference between table, entity and behavior

What is the difference between table , entity and behavior in the Model context? For example, I have a table called module, I want to make a query like this $modulo = TableRegistry::get('Modulo'); $resultado = $modulo ->find()...
asked by 05.09.2017 / 16:41
0
answers

How to call a function in CakePHP 3.x [closed]

I have a add view which is a form called help desk (referring to the function add of course), and I have this upload which is to attach file to the request, which is linked with a component , but I do not want to leave them in different...
asked by 11.12.2015 / 14:44
1
answer

Generate menu and submenu with PHP

Location: I am building a menu with information submenu that I retrieve from the database, these data are categories and subcategories of products, this menu is ready and working, but when there are no subcategories (which is a submenu of t...
asked by 27.07.2015 / 16:20
1
answer

checkbox "select all" jquery and CakePHP

Hi, I have foreach in a table that lists several checkboxes . I need to do a jquery function that by clicking on the checkbox of <th> % with_% the checkboxes of the next selecione todos . Look at my code:...
asked by 14.01.2016 / 12:21
1
answer

PHP Build-in class does not work in CakePHP 3.0

I'm trying to use a class Built-in of PHP inside CakePHP but it's returned one:    Error: Class 'App \ Controller \ Component \ DateTime' not found Where it's being used: public function listNewBanners($newBannersQuantit...
asked by 30.07.2015 / 19:23
1
answer

Add date with bank values. CakePHP 3.0

I need to make a calculation that adds an integer to a date. This whole number refers to days. $user = TableRegistry::get('PoliticaSenha'); $query = $user->find()->where(['id' => $usuario['politica_senha_id']])->first(); $dataTro...
asked by 25.01.2016 / 12:41
1
answer

Resolve Undefined namespace Mailer CakePHP 3.0.3

I'm trying to create a Reusable Email provided by CakePHP 3 but even following the documentation but I get the following error: use Cake\Mailer\Mailer; Error:    Undefined namespace Mailer       Referenced namespace is not found....
asked by 06.08.2015 / 16:43
1
answer

Cakephp-file-storage 3.0 plugin does not run and does not display Error

Following the cakephp-file-storage 3.0 plugin installation tutorial (which aims to give you the ability to load and store files on virtually any type of backend storage) but did not succeed in the file upload (also in its allocation), I did not...
asked by 17.08.2015 / 20:03