Wiki

Sorted by commentsX
Displaying 391-400 of 784 result(s).

Insert a multirow header in CGridView

Created 4 years ago by PeppeHow-tos2 comments – viewed 16,785 times – ( +6 / -1 ) – version 1.1
The CGridView widget is very useful and customizable, but sometimes you need a little more. One limit I found is to have only one row for headers; yes, you can write each column header in more than one row, but just inside the single cell. I was looking instead for the possibility to use more than one row, with different structure one from the others. This way you can write columns grouping headers, and obtain a nicer view.

Use minified version of JqueryAsset, BootstrapAsset (and all default assets)

Created 2 years ago by robregonmHow-tos2 comments – viewed 13,951 times – ( +11 / -1 ) – version 2.0
By default, Yii 2.0 chooses to use the non-minified version of Jquery and Bootstrap files (CSS and JS). However, there's a simple way to indicate Yii to use the minified version.

How to validate CSRF token with session

Created 5 years ago by yangmlsHow-tos2 comments – viewed 56,063 times – ( +23 / -1 ) – version 1.1
First of all, You must change component config to enable the default Yii CSRF validation.
tags: CSRF, session

How to display static pages in Yii?

Created 8 years ago by qiangTutorials2 comments – viewed 62,624 times – ( +19 / -1 ) – version 1.1
In a Web application, we often need to display pages like "about this site", "legal information", whose content are mostly static. There are several approaches to deal with this kind of pages.
tags: static pages

How to implement multiple page layouts in an application

Created 8 years ago by qiangTutorials2 comments – viewed 106,053 times – ( +24 / -1 ) – version 1.1
In this tutorial, we describe how to implement multiple layouts for action views in an application. As an example, we assume that the pages in our application will use three different layouts:
tags: layout

How to use Expression in default AccessControl to allow only the owner to do some action

Created 4 years ago by whatifHow-tos2 comments – viewed 39,426 times – ( +8 / -2 ) – version 1.1
Hi Everyone

How to add a named scope to ActiveRecords with a behavior

Created 8 years ago by MikeTutorials2 comments – viewed 22,548 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.

Useful Multilanguage extensions collection and use.

Created 4 years ago by cihappyTips2 comments – viewed 6,477 times – ( +3 / -1 ) – version 1.1
What I want to achieve:

How to use markItUp! on a text field for full WYSIWYG editing

Created 8 years ago by lucifuriousTutorials2 comments – viewed 25,566 times – ( +3 / -1 ) – version 1.1
This tutorial will show you how to use the Pogostick Yii Extension Library to make an HTML TEXTAREA input element into a full-fledged WYSIWYG editor pretty much with very little code.

How to display page on fancybox...using CHtml::ajaxlink with yii validation

Created 4 years ago by Ankit ModiTutorials2 comments – viewed 12,368 times – ( +2 / -1 ) – version 1.1
1) include the fancybox extesion otherwise fancybox js