So I have been asked by many people over the years how they can get into web development. I always tell them there is a very low barrier for entry, there are open source tools and software for everything. You can literally become a master web developer without every spending a dime. The other day ...
So for a project we needed some random test data but we wanted the data to be on a bell curve to represent real life scenarios. I couldn’t find anything so after so digging I found some code in Java and translated it into php seems to work great. function purebell($min,$max,$std_deviation,$step=1) { $rand1 = (float)mt_rand()/(float)mt_getrandmax(); ...
Thanks to a comment from Todd, I realized the API for Braintree has been updated since I last published this extension. Due to the release of PHP 5.5 some of the functions used in Braintree’s API code have been deprecated and were causing warnings. I have updated the Yii extension and also updated the repo. ...
I have updated the repo and the extension on Yii with version 1.1. Here are some of the updates in the newest version: Created a new model BraintreeCCForm that extends CFormModel for managing form input Added default types for widget. Reduced required inputs for widget $this->values can be pulled from $this->model $this->form_id can be pulled ...