Posts by Gildonei • 251 points
9 posts
- 
		0 votes4 answers1962 viewsA: How to repeat the fields of a form?I built this bootstrap-based fiddle http://jsfiddle.net/gildonei/ougkLo46/ HTML <form id="form-teste"> <div class="row clone"> <div class="col-xs-12 col-sm-12 col-lg-5 col-md-5">… 
- 
		1 votes1 answer1337 viewsA: How to use beforeSave in Cakephp 3?This should help your problem in implementing // Uses da class - além dos demais necessários use Cake\Event\Event; use Cake\ORM\Entity; // Seu método public function beforeSave(Event $event, Entity… 
- 
		2 votes2 answers1669 viewsA: Foreach with database recordsI think this should take care. Basically, with each iteration of the array atendo you have to check if the Id of this element exists within the array of your call list, and by that say whether it… 
- 
		0 votes2 answers8131 viewsA: Display content from a JSON using PHP and separate fieldsUse PHP’s json_decode function to turn your json string into something more readable in PHP. In this your output (json) would be an array http://php.net/json_decode <?php header("Content-Type:… 
- 
		0 votes4 answers80 viewsA: How to print next lineThe best solution for this is to use the function mysql_data_seek or similar according to sgdb. This function allows you to control the reading pointer of the records in your SQL query.… 
- 
		1 votes1 answer28 viewsA: For + Count in CakephpInstead of using Return false when an error occurs, use continue, because the false Return will cause the loop to stop when it does not meet the criteria, and the continue will cause the loop to… 
- 
		0 votes2 answers197 viewsA: Open div by clicking on a dateFollow the Fiddle link commented http://jsfiddle.net/gildonei/z0w8mpkq/ HTML <div id="agenda"> <div> <a class="link" id="1">1</a> <div style="display: none;"… 
- 
		4 votes2 answers292 viewsA: Cakephp: Paging with manual query@Danilomiguel For this query of yours, you don’t need to manually mount, you can create virtualFields, or use in your find "field" itself and use the standard Cakephp find method As I don’t know the… 
- 
		1 votes1 answer5292 viewsA: Refresh in div without loading other contentThere are 2 ways to do this. 1 - Through Ajax (may be with jQuery or not) considering this the best option <script type="text/javascript"> jQuery.ajax({ url: 'nome-da-pagina.asp', type: 'GET',…