Translation from .txt file Note:
Translation from .txt file Note:
In this wiki I will show how to create own custom global function. It may be save the space and reduce the time.
The CGridView widget is very useful and customizable, but sometimes you need a little more. One limit I found is to have only one row for headers; yes, you can write each column header in more than one row, but just inside the single cell. I was looking instead for the possibility to use more than one row, with different structure one from the others. This way **you can write columns grouping h...
When talking about cookie-base login the Yii guide indicates the following:
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?
create a class file under protected\components named RActiveRecord.php
login links will be
Using CActiveRecord->updateAll() and CActiveRecord->deleteAll() with scopes and criteria requires some tricks that are explained in this article. While findAll() , find() and some other methods use scopes automatically, updateAll() and deleteAll() do not.
When we use multiple radio buttons with same name in Yii many people have the problem on getting the value of the selected radiobutton. The radioButtonList can be used for that, but if we need to use radioButton itself to place the button any where in a view, we need to include one more parameter in htmloption array().
Hi Friends, In this tutorial, how to update the sum of all the button data-price value using jquery, Just Follow three step and it's work easily.I hope It may be some helpful to others.
In this wiki I will show how could forcing login for all pages and users must be logged in to access almost all of the site’s content.
Hi Friends,
Efficient coding with Yii implies efficient use of the code generator. This article shares the personalised Gii templates that were built starting from the standard templates proposed by AweGen.
Yii has a neat "trick" that will assign default values to new CActiveRecords. When performing a search() though, this is pretty annoying as they automatically apply as filter values.
Assuming that you have already install the wampserver on your windows.
In this wiki I will show how could use a Captcha in yii CForm. The easy way to show captcha image is create a form using CHtml method & CActiveForm, but CForm also should be able to show a captcha.
This tutorial shows how to use a model to save and validate related (MANY_MANY) models.
Like gmail, if you have tree or more unsuccessful login attemps a captcha appears
CMenu comes with a lot of great customization options built in. One of the most used is the class 'active' being added to menu item. But, what if you want to add your own class or id to a menu item ?