Ok, now you have an application running with Yii framework ! You can now benefit from the large amount of extensions provided by the Yii community. But what’s an extension ? Extending Yii There are many ways to extend Yii : modules, components, helpers….but we are going to focus on...
Beautiful URL in YII...
posted by xav
Ok, here goes a fine tip to remove the “index.php” from the URL. I did it on Apache with mod_rewrite on. In your httpd.conf file LoadModule rewrite_module modules/mod_rewrite.so First of, create a .htaccess file in the roor directory of your webapp (where index.php is), and put...
Yii: Multilingual si...
posted by xav
Nowadays, if you want to get in touch with the world, you’ve got to think about the people who don’t speak your native language. In Yii there is a simple mechanism to integrate translation. While it’s a quite a long topic I will try to make it short and basic. The setup It is...
Yii : CRUD scaffoldi...
posted by xav
Oh my God ! What a strange title !! Well, don’t be afraid. If you been following the other Yii tips this one is going to be easier. Let’s assume you’ve installed Wamp and let’s assume you’ve installed Yii either and that you’ve created your first webapp...
Yii the fast way
posted by xav
Here goes a quickie to get started with Yii. Yii is a PHP framework. I won’t go into the very details here, but just be aware that using a framework will help you develop light speed any app that would have taken ages to do without it. I walked through many of them, Zend,...
Purify your inputs i...
posted by xav
When working with my models in Yii a tried to inject a javascript in a text area, a simple alert. And the alert popped up when I went to browse the content of my model. Hopefully, we can prevent javascript injection, and more by using a php library called HTMLPurifier. Yii does include this...


Abduzeedo