Questions tagged as 'cakephp-3'

1
answer

Can you use CakePHP 3 to create screens to manipulate CRON as SideKiq?

Is there any way to create screens to manipulate CRON PHP with CakePHP3 as we have the sidekiq option for Ruby on Rails? It would be interesting to list the active jobs, and also the option to create new jobs, it would also be interesting to...
asked by 28.08.2017 / 15:44
2
answers

How to write data without the Jquery masquerade using Cakephp3

I have a system in CakePHP 3.4.5 and I am using jquery to apply mask in the fields cep, cpf, cnpj and etc. How do I save the data without the mask? I call Jquery in my default.ctp which is in my layout folder. echo $this->Html->scrip...
asked by 29.05.2017 / 19:36
1
answer

Bringing pre-selected radio button via CakePhp

I have the following Form below. If I pass checked=checked it brings the last selected option. But, for example, I want the first option to be pre-selected, any hint / suggestion? <?php echo "<label> Selecione o...
asked by 06.06.2017 / 20:05
1
answer

Cakephp 3 Permissions - Authentication

Good afternoon, Someone who has already needed to use the restrictions for the user via the bank in an editable way that can help. At first I followed the initial tutorial creating the users and roles tables, but the client asked me to edi...
asked by 19.12.2017 / 20:14
1
answer

Save associations cakephp 3

I'm trying to save associated data in Cakephp 3, in the database I have two tables tabela entidades(id, nome_principal) and enderecos(id, entidade_id, cidade) In EntidadesTable I made the association: $this->hasMany(...
asked by 13.05.2017 / 23:48
1
answer

Set template variable [closed]

I need to define a variable that will be displayed in the footer of all my pages, that is, in the Cake 3 template. Any ideas?     
asked by 23.02.2017 / 12:44
2
answers

"No 'Access-Control-Allow-Origin' header is present" cakephp

Good morning staff I'm making an application with angular and cakePHP. I'm trying to make a request for the backend and the following message appears in the console:    XMLHttpRequest can not load link . In 'Access-Control-Allow-Origin' h...
asked by 17.02.2017 / 14:37
2
answers

Difficulty in accessing url with angular post

I'm passing a url and some data via angular post ... But the following warning appear on the chrome console:    Cross source requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resou...
asked by 20.02.2017 / 17:16
1
answer

CakePHP 3 - How to sum the values of the quantity column of several lines and show the result in the view?

I have Table Entradaestoques    id - prod - qtd       1 - soap - 10       2 - cloth - 7       3 - soap - 20       4 - disinfectant - 4       5 - soap - 20       6 - cloth - 3 I want to show in View    Soap: 50 uni...
asked by 10.11.2016 / 20:44
1
answer

Updating multiple models and a single form CakePHP 3.x

I'm having trouble updating more of the model in the same form in cakephp, I've done several different modes and in all the main model is inserted / updated because the related model does not. My controller looks like this: $this->lo...
asked by 13.09.2016 / 16:05