Questions tagged as 'cakephp'

1
answer

CakePHP: Problems with route and pagination

I have a problem with the CakePHP routes. I have the following URL: link And it works normally. The problem is when I go to the second page: link Error: The requested address '/Produtos/index/61/789/page:2' was not found on t...
asked by 25.01.2017 / 21:12
1
answer

Database error, not null violation, I am passing all values, where am I going wrong?

After completing the form and submitting, returns the following array : array( 'User' => array( 'password' => '*****', 'nome' => 'Engenharia', 'username' => '[email protected]',...
asked by 26.12.2016 / 19:10
0
answers

Cakephp 2.x if, else

I have a project in Cakephp 2.x, with the following code: <?php echo $this->Form->create('Planos', array('url' => 'addPlanos')); foreach($ListarPlanos as $indice => $AdicionarPlanos): foreach($totalPlanosAlunos as $contador...
asked by 02.01.2017 / 17:49
1
answer

Filtering when selecting a checkbox

I need to make a filter where certain data is shown when some checkbox (s) is selected. For example: The checkbox " Aguardando embarque " and " Recebido " has been checked, so it should show a list in a table containing the...
asked by 29.12.2016 / 12:16
0
answers

Error in Composer when trying to create a CakePHP project

I'm using a Linux virtual machine (Ubuntu) to develop a CakePHP project. I have already installed everything it needs (Apache, PHP, MySQL, Curl, Git, INTL and Composer). So far, all right, until I try to create the CakePHP project with Compos...
asked by 27.10.2016 / 14:49
0
answers

Download Problems in CakePHP

I'm doing a Upload and Download system through CakePHP, this is basically all right, I'm only having a small problem, when I download a .PPT file that is already in my files directory, the browser points to a failure Download, file not found....
asked by 01.11.2016 / 18:32
2
answers

Error converting to vector (-toArray ()) in CakePHP

Good evening. I'm creating a function in the 'src/Model/Table/ProdutosTable.php' file, using version 3 of CakePHP. The function should return information in a vector of a list of products according to the date selected. The problem is...
asked by 22.09.2016 / 02:30
1
answer

Routine with CakePHP is legend to display data in view

I'm using CakePHP 2.4.2. I can not understand the slowness of displaying the data. As the number of records in the table increases, the slower it gets. The structure of the table is id (int (11)), name (varchar (255)), status (char (1)). C...
asked by 26.09.2016 / 03:40
1
answer

Variable debugging in model cake php layer

How do I give a debug or printf to a variable in the model so that it is displayed on the screen? I can only debug the variables in the view and in the controller public function atualizaCatalogo(){ $arr_produtos_out = $this->c...
asked by 08.07.2016 / 15:31
1
answer

I can not validate form in Cake PHP 3

Hello, I'm new to CakePHP 3 and I'm having problems validating my form login.ctp, error: undefined variable users in login.ctp. I would appreciate if someone could help me validate; login.ctp : <br> <div class="index large-4 me...
asked by 21.07.2016 / 03:07