Wiki

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

Simple Share Widget for Facebook, twitter and google+

Created 5 years ago by softarkHow-tos4 comments – viewed 23,857 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.

defaultScope

Created 4 years ago by Gerhard LiebenbergHow-tos4 comments – viewed 23,838 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().

Using CJuiDialog to display flash Messages in Dialogues

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

multiple CActiveDataProviders in one CGridView

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos7 comments – viewed 23,558 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,499 times – ( +4 / -1 ) – version 1.1
For example have folder with image resources which are public accessible
tags: yii, image-resize

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

Created 3 years ago by Kostas Apazidis (KonApaz)Tutorials4 comments – viewed 23,498 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 ?

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

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

Multi level dropdown menu in Bootstrap

Created 3 years ago by sefburhanTutorials1 comment – viewed 23,298 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

How to add a named scope to ActiveRecords with a behavior

Created 8 years ago by MikeTutorials2 comments – viewed 23,260 times – ( +4 / -1 ) – version 1.1
Since Yii 1.0.5 you can use named scopes with ActiveRecords. They are a great help in simplifying your query calls.

Two Login in same form in Yii application , with two tables

Created 4 years ago by BaluTutorials6 comments – viewed 23,149 times – ( +4 / -8 ) – version 1.1
login links will be