This is a simple demo how to use Zend_AMF with Yii.
We will use Symfony 2 components for writing tests for Yii project, it's gonna be fun :).
Having said all of that, I want to add that the purpose of this article is not to convince anyone to write tests or design following TDD patterns. I'm not going to change the world to what I think is good. It's just about showing how to use some tools together with Yii Framework.
Sometimes you need to force a user to change their password after x number of days. This article describes how to implement this using a filter, ChangePasswordFilter.
The only thing required is simple, we just need to create a view that will be partially rendered by a call to a controller (using renderPartial) and make sure that we process output -setting to true the parameter on the function. Everything will work as expected but...
How many of us wonder how we can upgrade the website without hurting the operation of our WebApp?
First, you have to have create database table for default language and allowed languages.
CREATE TABLE IF NOT EXISTS `tbl_languages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `lang` varchar(2) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `flagpath` varchar(40) CHARACTER SET utf8 COLLATE utf8_unicode_...