Posts by Punisher07 • 35 points
4 posts
-
3
votes1
answer106
viewsQ: PHP Array for JS Array
I have the following array in PHP Array ( [0] => Array ( [Funcionarios] => Array ( [id] => 3 [nome] => Funcionario Teste [assistmed] => 10 [assistodont] => 1 ) ) [1] => Array (…
-
0
votes1
answer194
viewsA: How do I query if a record exists in cakephp 2.6?
I needed to check if there was a record where the key is 4 fields. I got it sorted out. Here’s what I did. I left it at the end of my model public function beforeSave($options = array()) { $any =…
cakephp-2answered Punisher07 35 -
0
votes1
answer194
viewsQ: How do I query if a record exists in cakephp 2.6?
I wonder if a record exists in cakephp 2.6 As everyone knows, cakephp has to use the id key, however this table is a key composed of 4 fields. I gave a read and tried to use beforeSave(),…
cakephp-2asked Punisher07 35 -
0
votes1
answer131
viewsQ: Problem using cakephp 2.6 - Undefined index
Good morning friends, I am learning to program on cake recently and I am having some difficulties. Follow models and controllers. Recibo.php (Model) class Recibo extends AppModel{ public $name =…