Wiki

Sorted by ratingX
Displaying 551-560 of 752 result(s).

Yii2 default values for Index data Provider

Created about a year ago by CTalaTips1 comment – viewed 5,420 times – ( +2 ) – version 2.0
Guys,

pass variables or content block from view file to layout file

Created 2 years ago by yiqing95How-tos0 comments – viewed 16,244 times – ( +2 ) – version 1.1
If you use yiic to generate webApplication there will be a layout folder under the protected/views/, and the Controller class under protected/components which will use by default these layouts files.

Instanciar clase hija basada en campo de modelo padre (CActiveRecord)

Created 2 years ago by robregonmHow-tos0 comments – viewed 6,761 times – ( +2 ) – version 1.1
[EN] [ES]

caching controllers with filters()

Created 4 years ago by RusAlexHow-tos1 comment – viewed 11,056 times – ( +2 ) – version 1.1
Hello, this article will describe some aspects about caching controllers with filters() method in your controller. And I will describe some problems I meet when using this approach for caching, the main problem was

Update related models of a model using listBox and checkBoxList in the form

Created about a year ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 8,413 times – ( +2 ) – version 1.1
Suppose you want to have a list in Category with its related products and you want to updates the list (removing or insert product items) This wiki show us how to do that

Multilanguage Lorem Ipsum Text Generator

Created 2 years ago by yasenHow-tos2 comments – viewed 5,440 times – ( +2 ) – version 1.1
Taking futher the idea from Piotr MaseĊ‚kowski - http://www.yiiframework.com/extension/elipsum/ here's how to generate multilanguage Lorem Ipsum text. This example uses English and Bulgarian sample paragraphs. Create a class in /protected/components/LoremIpsum.php. Wall of text incoming wohoo...

Insert a model record using CGridview

Created about a year ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 5,817 times – ( +2 ) – version 1.1
CGridview displays existent rows of the table (using DataProvider)

Update specific cgridview html row after AJAX request

Created about a year ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 8,049 times – ( +2 ) – version 1.1
After of model update (successfull or not) throught CGridView (check the below link) you probably need to updates the specific row html in cgridview (not entire cgridview)

Prevent asset publishing for CListView

Created 4 years ago by MikeHow-tos2 comments – viewed 8,153 times – ( +2 ) – version 1.1
If you don't want to use any of the AJAX features of CListView and thus want to prevent that it publishes any of its asset files, you can extend it and create a sub class like this:
tags: CListView, Assets

TimeZone dropDown

Created 2 years ago by Tibor KatelbachHow-tos0 comments – viewed 7,120 times – ( +2 ) – version 1.1
I spend a bit of time looking for the this piece of code while building time feature on a site this tutorial also helped Local time zones and locales