Wiki

Sorted by commentsX
Displaying 351-360 of 715 result(s).

How to keep filters simple in CGridView

Created 2 days ago by PeppeHow-tos2 comments – viewed 563 times – version 1.1
The problem is not new: after setting some filters in a grid (typically in admin view), and gone to another page, returning in the grid's page I would like to find the filters with previous setting mantained.

File uploads in CForm (Form builder)

Created 3 years ago by Luke JurgsHow-tos2 comments – viewed 34,375 times – ( +12 ) – version 1.1
While there is a reasonable amount of documentation regarding CForm (form builder) and file uploads seperately, there really is not any coverage of both in combination.

Eclipse PDT - code-hints, references and other goodies

Created 5 years ago by mindehTutorials2 comments – viewed 26,146 times – ( +14 ) – version 1.1
Since PHP is dynamically typed language, the way IDE may help you is limited.
tags: IDE

Insert a multirow header in CGridView

Created about a year ago by PeppeHow-tos2 comments – viewed 9,558 times – ( +5 ) – 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.

How to display static pages in Yii?

Created 5 years ago by qiangTutorials2 comments – viewed 47,701 times – ( +19 ) – 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 5 years ago by qiangTutorials2 comments – viewed 82,426 times – ( +24 ) – 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 add a named scope to ActiveRecords with a behavior

Created 5 years ago by MikeTutorials2 comments – viewed 16,370 times – ( +4 ) – 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 about a year ago by cihappyTips2 comments – viewed 4,435 times – ( +3 ) – version 1.1
What I want to achieve:

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

Created 5 years ago by lucifuriousTutorials2 comments – viewed 20,505 times – ( +3 ) – 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 about a year ago by Ankit ModiTutorials2 comments – viewed 8,174 times – ( +2 ) – version 1.1
1) include the fancybox extesion otherwise fancybox js