Wiki

Sorted by date (updated)X
Displaying 511-520 of 777 result(s).

Customize CGridView columns directly in your view

Updated 4 years ago by clapasTips4 comments – viewed 30,110 times – ( +3 / -2 ) – version 1.1
You usually take a model instance passed into your view to provide data to a CGridView in this way:

Our WebApp that will run without downtime during update/upgrade

Updated 4 years ago by Maurizio Domba CerinTutorials3 comments – viewed 9,678 times – ( +8 / -2 ) – version 1.1
How many of us wonder how we can upgrade the website without hurting the operation of our WebApp?
tags: tutorial

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

Updated 4 years ago by Maurizio Domba CerinHow-tos21 comments – viewed 51,582 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.

Multiple-database support in Yii

Updated 4 years ago by phazeiHow-tos18 comments – viewed 98,784 times – ( +29 ) – version 1.1
The customary configuration of a Yii application includes just a single database section in the protected/config/main.php file, but it's easy to extend this to support more than one, tying each Model to one of the databases.
tags: Database

Custom Number Formatting or Decimal Separators and i18n

Updated 4 years ago by c@cbaTutorials8 comments – viewed 50,784 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...

Simple way to use AutoComplete using different ID and Display Value

Updated 4 years ago by raheelk2kTutorials5 comments – viewed 24,721 times – ( +11 ) – version 1.1
Usually when we use AutoComplete in a project, We need to show "title" or "name" in the list, while when the form is posted, we need some sort of integer ID referring to the selected value. Out of the Box, CJuiAutoComplete widget doesn't provides different display text and post values.

Extending CJuiDialog

Updated 4 years ago by Maurizio Domba CerinHow-tos0 comments – viewed 11,027 times – ( +2 / -2 ) – version 1.1
Sometimes you have CJuiDialog with different content but same buttons (or width, height). If you don't want to repeat yourself this is a great solution:

Yii behind a reverse proxy, SSL support and correct IP logging

Updated 4 years ago by mrkmgTips0 comments – viewed 5,885 times – version 1.1
If you are hosting Yii behind a reverse proxy, for example nginx, and you are having issues with your logs showing the proxies IP, or the urls being created arn't being created for SSL because your SSL certs are located on your reverse proxy instead of the Yii server, this code may be able to help you. I placed them in the very top of Yii's entry script, index.php

Using CAutoComplete to display one value and submit another

Updated 4 years ago by mohammad sharif ahrariTutorials5 comments – viewed 50,004 times – ( +8 / -3 ) – version 1.1
Note: CAutoComplete is deprecated since Yii 1.1.3. Consider using CJuiAutoComplete.

How to render a view in Fancybox using ajax

Updated 4 years ago by 张 迪How-tos1 comment – viewed 22,126 times – ( +7 ) – version 1.1
Sometimes you want to render a view in Fancybox.
tags: fancybox, ajax, views