Questions tagged as 'cakephp'

1
answer

Transform 2 php array into a single array

I have 2 Arrays : "val" => { "0": "2" "1": "4" "2": "6" "3": null "4": null } "p" => { "0": "4" "1": "5" "2": "7" "3": "8" "4": "9" } So I want to get the elements of array val...
asked by 08.11.2018 / 18:04
1
answer

Invalid login message always appears in CakePHP

When I enter my login page, the warning message that the user or passwords are invalid appears soon, but this should only appear after clicking the button to sign in. Can not you get around this? My view: <div class="large-4 columns"...
asked by 28.02.2014 / 11:12
1
answer

search query in cakephp

I want to do a query that finds the date, but the query below is finding even when I do not pass value or when it is a value that has nothing to do with date: $busca = $this->Despesa->find('all', array('data_despesa' => '2')); In t...
asked by 22.10.2015 / 01:04
3
answers

Paste last WordPress post in CakePHP

When loading: define('WP_USE_THEMES', false); require(ROOT.'\blog\wp-blog-header.php'); I'm having the following error:    Fatal error: Can not redeclare __() How can I load the last blog post into a project in CakePHP?     
asked by 14.08.2014 / 03:59
1
answer

How to make BETWEEN in CAKEPHP?

I'm doing a query in the database and I need to get information between two values of the valor column that are within the specified amount. For example: Between valorMinimo 300 and valorMaximo 600 $imovel = $this->I...
asked by 10.03.2014 / 18:39
1
answer

CakePHP - Upload a background-image css

I can not load my image in the Css Background style.css - working, just not being able to call this image .layout{ width: 100%; height: 230px; position: relative; margin: auto; background-image:('../img/background.png'...
asked by 12.06.2014 / 02:34
1
answer

Query does not return all registry data

The following query returns the correct record but missing items on its return. $nota = $this->Nota->find('first', [ 'conditions' => ['id' => $numero, 'serie' => $serie ] ]); For example: When no error, return...
asked by 19.12.2016 / 17:45
1
answer

Is Cakephp 1.3.15 compatible with Php 5.6?

I have a project in CakePhp that is in version 1.3.15 and the manual says that it is compatible with PHP 4 and with 5. The hosting server is running PHP 5.3.3. I would like to know if it is actually compatible with PHP 5.6.     
asked by 08.03.2016 / 15:28
2
answers

Query brings data ignoring $ conditions

I am making an inquiry and the cake is bringing all data ignoring $ conditions. I want to search by date, but when I put a date that does not exist in any record, it still brings all the data. public function consultarDespesa() { if ($this...
asked by 19.01.2016 / 14:37
1
answer

Doubt with conditions in cakephp?

I'm trying to make a conditions into a find . I have 2 tables: tipopessoas and pessoas , in table pessoas I have a foreign key for table tipopessoas . I want my find to bring the result just for two types o...
asked by 01.09.2015 / 14:54