Wiki

Sorted by viewsX
Displaying 361-370 of 786 result(s).

Save or Update Multiple related model values in one Tabular input form

Created 3 years ago by Kostas Apazidis (KonApaz)Tutorials4 comments – viewed 24,131 times – ( +1 / -8 ) – version 1.1
In this wiki I will show you how to save/update a model with many related model For example: How to set a product to multiple categories only in one post form ?

defaultScope

Created 4 years ago by Gerhard LiebenbergHow-tos4 comments – viewed 24,045 times – ( +5 / -2 ) – version 1.1
This example includes a composite condition as well as an empty condition - as if you bypass or disable defaultScope without using resetScope().

How to render a view in Fancybox using ajax

Created 5 years ago by rix.rix.How-tos1 comment – viewed 24,007 times – ( +7 / -1 ) – version 1.1
Sometimes you want to render a view in Fancybox.
tags: fancybox, ajax, views

Simple Share Widget for Facebook, twitter and google+

Created 5 years ago by softarkHow-tos4 comments – viewed 23,972 times – ( +10 / -1 ) – version 1.1
This widget will show a Facebook "like" button and "comments" box together with "tweet" button and "google plusone" button on your page.

"safe" and "unsafe" Model validators (massive assignments)

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos4 comments – viewed 23,818 times – ( +4 / -7 ) – version 1.1
Ok, it is a little bit difficult to full understanding the unsafe validator.

multiple CActiveDataProviders in one CGridView

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos7 comments – viewed 23,788 times – ( +8 / -2 ) – version 1.1
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

Image resize on the fly

Created 5 years ago by TpoxaHow-tos4 comments – viewed 23,739 times – ( +4 / -1 ) – version 1.1
For example have folder with image resources which are public accessible
tags: yii, image-resize

Using CJuiDialog to display flash Messages in Dialogues

Created 7 years ago by thyseusTutorials2 comments – viewed 23,696 times – ( +11 / -1 ) – version 1.1
In order to nicely display flash Messages, create view like this called views/site/dialog.php :

Multi level dropdown menu in Bootstrap

Created 4 years ago by sefburhanTutorials1 comment – viewed 23,554 times – ( +38 / -1 ) – version 1.1
To get multi level dropdown menu of using boostrap extension (http://www.yiiframework.com/extension/bootstrap/) widget TbNavbar just follow steps

Simple example for language translation

Created 3 years ago by RKAHow-tos2 comments – viewed 23,463 times – ( +1 / -1 ) – version 1.1
Language translation is a common requirement in multi lingual sites. In Yii, we can translate using message and view translation.
tags: yii, i18n