Sorted by viewsX
Displaying 121-130 of 779 result(s).

How to write a simple application component

Created 5 years ago by zaccariaHow-tos5 comments – viewed 54,029 times – ( +20 / -7 ) – version 1.1
An application component is a confortable way for share information among all component of the application

How to use single form to collect data for two or more models (CActiveForm and Ajax Validation edition)

Created 5 years ago by RusAlexHow-tos9 comments – viewed 53,480 times – ( +22 ) – version 1.1
With Yii you can use one CActiveForm for collecting data for two or more models with ajax validation and client validation.

htmlOptions explained for various controls.

Created 5 years ago by WoilTips1 comment – viewed 53,441 times – ( +18 ) – version 1.1
Most controls that are rendered by CHtml have an argument called $htmlOptions. This argument is an array that holds the attributes of the HTML element. For example the following code:

How to use Multiple instances of the same model in the same form

Created 4 years ago by kiran sharmaHow-tos21 comments – viewed 53,349 times – ( +22 / -6 ) – version 1.1
When i had created this functionality then i found some difficulties and not got much idea from wiki and forums. so, i think this will be useful for newbie users and save time of other developers when create related functionality. I refer Collecting Tabular Input tutorial but not got clear idea for create/update.

Working with radiobutton list

Created 4 years ago by vibhaJadwaniTutorials3 comments – viewed 52,907 times – ( +10 ) – version 1.1
This is a tutorial to work with radioButtonList which will handle enum datatype. Form design and validation both are detailed here.

How to avoid multiple Ajax Request

Created 5 years ago by nickcvHow-tos26 comments – viewed 52,783 times – ( +25 / -2 ) – version 1.1
CHtml::ajaxLink(), CHtml::ajaxSubmitButton() and similar methods are great, but if they are located inside a portion of the page that is already loaded via ajax something bad will happen, something you may even not notice if you are not using tools like firebugs: the sent ajax requests will multiply themselves.

Create / Generate PDF files with TCPDF plugin (Example to generate Table with TCPDF plugin)

Created 3 years ago by codesutraTutorials11 comments – viewed 52,244 times – ( +6 ) – version 1.1
Few days ago i was playing with TCPF plugin to create a PDF files. Since i have checked few available extension and also checked some forum threads but still i dont get my expected result for PDF file.

Yii for beginners 2

Created 3 years ago by rackyczTutorials2 comments – viewed 52,045 times – ( +32 ) – version 1.1
Hi :-) Is that you again? Welcome !! :-)

Custom Number Formatting or Decimal Separators and i18n

Created 4 years ago by c@cbaTutorials8 comments – viewed 51,979 times – ( +7 ) – version 1.1
By default, the decimal separator in php (also in mysql) is a dot (.). So when we work with floats in Yii (in calculations, validation, sql statements etc.), the decimal separator has to be a dot. If we want to use for example a comma (,) as the decimal separator, that is if we want to display numbers and enable users to enter numbers with a comma before the decimals, we have to...

config Use MS SQL SERVER 2005 2008.

Created 5 years ago by vcxz_1982Tutorials2 comments – viewed 51,678 times – ( +4 ) – version 1.1
Use SQL SERVER 2000, the date format not like: yyyy/mm/dd hh:mm:ss. So I change to use SQL SERVER 2008 EXPRESS.