Posts by Paulo Nascimento • 81 points
4 posts
-
3
votes1
answer599
viewsA: How do I get a saved record from the Cakephp database
Is the view relative to the same table model or different? If it is the same: $total = $sales['Sale']['valor']; If it’s different, in your view controller, it’s: public function view(){…
cakephp-2answered Paulo Nascimento 81 -
0
votes2
answers131
viewsA: In Cakephp associations, how do you change the relationship key?
Maybe there’s a mistake on the line 'foreignKey' => 'Cart_uid', Possibly would be 'foreignKey' => 'Cart_id',
-
3
votes1
answer440
viewsQ: Add and remove fields generated via Cakephp
I have a <select> which is powered by database data. I need to manipulate this select and multiply it in case the user wants to enter more different data. I also need to change the "name"…
-
2
votes2
answers1096
viewsA: Change the value of a select in Cakephp
Oops, it took me a while because I had left this part, but I came back and got it. In fact, my relationships were reversed, which took me a while to understand. public $hasOne = array( 'Ficha' =>…