Localized version of CFormatter
To replace the application component 'format', which is registered by CApplication by default, you can put this in your application 'components' config:
To replace the application component 'format', which is registered by CApplication by default, you can put this in your application 'components' config:
hello guys now i am going to show you how to Reuse File Upload Code across multiple projects.
In this wiki I will show you how to extends an extension and/or how can two or more extensions work together.
If you are about to create a graph, the best option i would suggest is the jqbargraph.
In order to get your Yii logs into Heroku's logs, you have to work a little bit of magic. You'll need to modify the boot.sh script and add the following two lines: ~~~ touch /app/apache/logs/app_log tail -F /app/apache/logs/app_log & ~~~ This will set up the log and tail it so that when you request "heroku logs", this log is included.
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.
some times we want to show the serialNo on cgridview .
As we know Using crud generator creates menu items in view files (for each view file have a varius menu items)
in model add the following code:
I needed all messages with their translation into javascript. This is my solution:
I have developed a extension for a image puzzle game. You can use your own images and you can also customize how many rows and columns for the image. It can be used in commercial sites. I just needed your thoughts on the game.
In SQL, wildcard characters can be used in "LIKE" expressions; the percent sign (%) matches zero or more characters, and underscore (_) a single character. Sometimes users are not familiar with these or they are using different ones like (*) and (+) similar to regular expressions. My colleages do so and then i decided to add this feature by extending CbCriteria. Especially adding a new parameter $...
If you have two datepicker in one form and you want that a date of from date shold be minimum date of todate then put following code in Cjuidatepicker widget options array:
'onSelect'=>'js:function(selected) {
$("#HostelRoomStatusMaster_room_status_master_end_date").datepicker("option","minDate",selected);
}',
Just thought I would share this bash script I wrote to help automate a base install of YII on an Ubuntu server. This script does the following:
If you are testing your app and use urlManager in your config, sometimes you will find a problem: you want to test your site independing from urlManager settings. in that way you need to extend your WebTestCase class by this method:
Um aspecto do design da interface de usuário tem a ver com a coerência do design e da utilização das cores entre os diferentes componentes da interface do usuário utilizada.