Questions tagged as 'cakephp'

3
answers

Problem filling OPTION / COMBOBOX / DROPDOWNLIST CakePHP

I'm having a problem wanting to fill a Combobox / dropdownList in CakePHP I fill it up like this: public function obtComunas() { $Comuna = $this->ManComuna->find()->select(['codigo_comuna', 'descripcion'])->toArray();...
asked by 20.12.2016 / 17:39
1
answer

Filters excelphp

Hi, I'm using this library link and I want to add a date and time filter that looks like this: and in the BD the info is in the sgt structure: 2018-06-19 12:13:21 but when you put it in the cell it reads it as text and not a...
asked by 06.07.2018 / 19:00
2
answers

Problem with postlink in cakephp

I'm a novice with cakephp and I'm creating a form to add, edit and delete records. The problem is that I try to make the delete link look like a button, I have achieved it with css, creating a button class to which I gave a style. The issue is t...
asked by 29.12.2016 / 22:02
1
answer

Download BD in several Excel

is that I have a site that downloads the bd in an excel file but the thing is that I arrive at so much data that the excel file arrives damaged, so it occurred to me that I could only upload, say, a thousand data and that when the thousand thous...
asked by 31.07.2018 / 00:01
1
answer

div does not appear with cakePHP 3.6

Hello, I have a layout and within this position content through fetch ('content')? > The views in cakePHP 3.6 are saved in src / template - > Vista / vista.ctp Well, I have a view that is a very simple code, it does a foreach and I s...
asked by 26.06.2018 / 17:54
1
answer

Pass an array to a view in cakephp

I have an array in this way doing a var_drum. array (size=1) 'articles' => array (size=36) 0 => object(stdClass)[134] public 'id' => int 56 public 'title' => string 'prueba con servicio jso...
asked by 27.06.2018 / 18:15
1
answer

Relationship between tables (hasOne)

I have 2 tables one of images that belong to several different tables and in the other table the reference for id_image with the id of the table images. In the image model I put: $this->hasOne('Documentos') ->setName('Documentos'...
asked by 28.06.2018 / 00:19
1
answer

get the id of a php array

I have this array object(stdClass)[138] public 'articles' => array (size=39) 0 => object(stdClass)[140] public 'id' => int 56 public 'title' => string 'prueba con servicio json es tt aa' (l...
asked by 29.06.2018 / 00:42
1
answer

Show new BD field in cakephp view

Well the problem is as follows, create a field in the database @KacosPro and connect a page to make an ibdate in this. The thing is that now I must connect it from another page that shows a table, the thing is that it does not do anythi...
asked by 24.04.2018 / 17:57
1
answer

Show and hide divs

I have the following problem, I already managed to hide a div from right to left, but what happens is that the second div (the one that is going to be shown) does not appear until the first div is completely gone. But I need that as the first...
asked by 12.04.2018 / 00:48