Category Archives: Yii Framework

Yii Framework Separate Configurations for Different Environments

Yii doesn’t have a built-in way of changing configurations based on the environment that it is running in. However, there are a number of ways to accomplish this. Method #1 There is a great extension available that allows you to … Continue reading

Posted in Yii Framework | Tagged , , , | Leave a comment

Yii Framework – reCAPTCHA with Active Form

CAPTCHAs on the Internet are as prevalent as they are annoying.  Unfortunately, these squiggly words are sometimes the best protection from automated attacks.  In our applications, we try to reduce use of CAPTCHAs, but when we do have to use … Continue reading

Posted in Yii Framework | Tagged , , , , | Leave a comment

Yii Podcast

Yii Radiio popped out of our referral logs today, and we’re really impressed at the podcast (and the clever name).  It’s quick, professional, and to-the-point, with a few nice links about the Yii Framework in every episode.  If you’re interested … Continue reading

Posted in Yii Framework | Tagged , | Leave a comment

Yii Framework Test Script Submitting to Production

Edit: It looks like our RewriteRule directives in Apache may have been the culprit. We rarely use a .htaccess file and instead use configuration files to speed up Apache. Since we didn’t change index.php to index-test.php in the configuration, it … Continue reading

Posted in Yii Framework | Tagged , , , , , | Leave a comment

Yii Framework & jQuery Cookie Plugin

Accessing the jQuery Cookie plugin is easy in Yii Framework.  Here is the code you will need to put in your PHP file to include the right script references: $cs = Yii::app()->clientScript; $cs->registerCoreScript(’jquery’); $cs->registerCoreScript(’cookie’); $cs->registerScriptFile(CController::createUrl(’/js/mainsite.js’), CClientScript::POS_HEAD); Then, in your JavaScript, … Continue reading

Posted in Yii Framework | Tagged , , | Leave a comment

CJuiDatePicker/CActiveForm Yii Framework

    For many of our web applications, we utilize the Yii Framework extensively.  A great feature of the framework is the CActiveForm, which allows you to link up your Model to your View in a very easy manner.  (See … Continue reading

Posted in Yii Framework | Tagged , , , | Leave a comment