Questions tagged as 'cakephp-3.x'

1
answer

The view is not showing the parameters passed by the controller

Related to this question --- > > $ this- > request- > getData (); does not recover the data I do not know why the variable $ option is not shown in the view, but success if it is showing: <div class="modalHome"> modi...
asked by 01.01.2019 / 13:49
2
answers

$ this-request-getData (); does not recover the data

I'm going crazy with the AJAX response I want to pass a variable by ajax and retrieve it with cakephp. The variable to recover is " option " jQuery + AJAX: $(document).on("click", "#modificar-foto-cuenta", function() {...
asked by 28.12.2018 / 21:18
1
answer

Line jump between label and input type

IN CakePHP 3.6 How do I make a line jump between the label and the input type? <?= $this->Form->control('nombre', ['placeholder' => 'Nombre', 'class' => 'nombre', 'size' => '20', 'maxlength' => '30']); ?> It shows...
asked by 01.01.2019 / 15:20
0
answers

Validate start date and end date in php (cakephp)

I'm doing a validator in the cakephp model so far I have: public function validationDefault(Validator $validator){ $validator ->date('fechainicio') ->allowEmpty('fechainicio'); $validator ->date('fec...
asked by 05.12.2018 / 21:37
1
answer

How to fix network error is unreachable when sending mail in cake php 3?

Good afternoon I have the following code with which I sent mail and it works well in my local but when uploading it to the server it sends me an error: 2018-11-05 18:36:12 Error: [Cake\Network\Exception\SocketException] Network is unreachable...
asked by 06.11.2018 / 01:52
0
answers

Validate field type file so that it only accepts certificates open ssl in Cakephp 3

I have a field type file is the following: <?= $this->Form->file('key', [ 'id' => 'form__key', 'class' => '_oculto js--file__upload', 'name' => 'key', 'data-file' => 'application', 'acce...
asked by 08.11.2018 / 22:50