Posts by rafaelvaloto • 150 points
7 posts
-
1
votes1
answer888
viewsQ: Real time with javascript or jquery?
I need to enable message notifications on a web page, Example, User receives a message and I notify him that he has a new message but without updating the page. How can I make a function that runs…
-
5
votes2
answers1001
viewsQ: How to debug shell script in linux?
I’m new to linux, and I’m learning shell script and my question is this:. When I want to debug something in PHP for example, I put a breakpoint in the code and run the same with the debug on, I…
-
0
votes2
answers262
viewsA: Inserting multiple templates in a Yii2 form
In that case I would write the code in a different way, using \Yii db Transaction; This way you can ensure that if one model is not saved the other will also not be saved by performing a ROLLBACK.…
-
1
votes1
answer82
viewsA: yii2-Braintree installation problem via Composer
The problem is due to minimum-Stability Composer.json is probably set to @stable, and since the version of the package you are trying to clone has not been specified, Composer will try to clone the…
commiserateanswered rafaelvaloto 150 -
2
votes2
answers377
viewsA: Error reading XML file
It doesn’t seem to be blocking, copy this code below $url = 'http://painel.foxsolucoes.net/api/VFZSTmVrMTZaejA9KzU='; $ch = curl_init(); curl_setopt( $ch, CURLOPT_URL, $url ); curl_setopt( $ch,…
-
2
votes2
answers130
viewsA: How to use the find with sum method?
Can also be obtained by $this->find()->where(...)->sum('column');
-
2
votes2
answers2217
viewsA: Dynamic checkbox list in Angular and JSON API
I made a Plunker to illustrate the example. http://embed.plnkr.co/snSiKis4r1u9GJKzDA3f/preview I suggest you only have one list, the same array that returns from the back end you use to list and…