Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 201-210 of 301 result(s).

Client-side form validation using Twitter Bootstrap's Popovers

Created about a year ago by TrejderHow-tos4 comments – viewed 26,560 times – ( +4 / -1 ) – version 1.1
This article explains how to easily turn standard text-line validation errors into beautifully and professionally looking Twitter Bootstrap's Popovers.

How to insert a Simple Dialog Box

Created 2 years ago by bluyellHow-tos4 comments – viewed 19,641 times – ( +5 / -2 ) – version 1.1
I build this simple PHP class (DialogBox.php at the bottom of this wiki) to help you in the dialog box usage on Yii applications. The goal is run any Yii actions into this dialog box and return the resulting value to the calling instance.

Multiple Database Connection : Select database based on login user id, Dynamic

Created 11 months ago by Rajith RHow-tos3 comments – viewed 11,298 times – ( +9 / -6 )
create a class file under protected\components named RActiveRecord.php

make chart from custome queries using amcharts widget

Created 11 months ago by Narender NegiHow-tos0 comments – viewed 2,680 times – ( +2 )
Use this code in your view,make sure to put EAmChartWidget in your extension folder. here is the url of widget http://www.yiiframework.com/extension/eamchartwidget/

How to handle decimal separators (e.g comma instead of dot) for l18n

Created 2 years ago by jpabloHow-tos2 comments – viewed 11,056 times – ( +2 ) – version 1.1
Yii i18n does not cover decimal format. Some languages like Spanish (I live in Argentina) uses comma ',' instead of dot '.' as decimal separator.

thumbsgen and Kohana Image Library together (extends an extension)

Created 8 months ago by KonApazHow-tos0 comments – viewed 2,623 times – ( +2 )
In this wiki I will show you how to extends an extension and/or how can two or more extensions work together.

Publish yii webapp using Git push

Created 2 years ago by rootbearHow-tos6 comments – viewed 6,870 times – ( +2 ) – version 1.1
I did not invent this instructions, I read it somewhere and re-organized in my way as I was trying and it works for me;
tags: git

Alternative wildcard characters CDbCriteria

Created 2 years ago by maigretHow-tos0 comments – viewed 4,838 times – ( +2 ) – version 1.1
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 $wildcard_chars to the method addSearchCondition to replace them if needed with standard SQL characters:

Upload image and content using AJAX and Store it in different table

Created 5 months ago by SelvakumarHow-tos1 comment – viewed 14,897 times – ( +2 ) – version 1.1
We all know how to upload the content and images at the same time with refreshing the page. And uploading the images using Ajax we have faced some issues, here i have fixed the issues and both content and photos are uploaded using Ajax. And both content and images are stored in the different tables

Configuring Yii to run on both Windows and OSX

Created 5 months ago by trondHow-tos2 comments – viewed 2,204 times – ( +2 ) – version 1.1
If you develop your Yii project on both Windows and Mac, there can be a problem setting up the configuration unless the configurations for both system are identical. On my machines I have the following configurations:
tags: config