Wiki

Sorted by viewsX
Displaying 441-450 of 786 result(s).

get summary of related model via STAT relation

Created 4 years ago by rootbearHow-tos2 comments – viewed 17,385 times – ( +7 / -2 ) – version 1.1
typical scenario: invoice, invoice items.

Extending CActiveForm for some form display fixes and language tweaks

Created 6 years ago by TrejderTips0 comments – viewed 17,375 times – ( +5 / -1 ) – version 1.1
In this simple example I'll demonstrate how to extend CActiveForm class to overload some drawing functions to achieve some commonly used fixes in forms.

Managing constants easily

Created 5 years ago by briiC.lvTips4 comments – viewed 17,313 times – ( +4 / -1 ) – version 1.1
For time to time i have models with constants (basicly status constants) which i use in diferent places and if these constant changes, i have to change mentions of constant in code elsewhere.

Create sitemap.xml file dynamically on root folder with one hit

Created 4 years ago by kiran sharmaHow-tos1 comment – viewed 17,303 times – ( +5 / -6 ) – version 1.1
I had created one controller file which can create sitemap.xml file(which is used for seo, google crawler and many other puropse) dynamically with one run.
tags: SEO, SiteMap, XML

Adding a link to a CDataColumn

Created 4 years ago by le_topTips6 comments – viewed 17,300 times – ( +3 / -1 ) – version 1.1
Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

How to hide `index` action from URL

Created 5 years ago by rootbearHow-tos2 comments – viewed 17,262 times – ( +3 / -3 ) – version 1.1
Here is my experiment inspired by my own question and others from the forum.
tags: index

Insert a multirow header in CGridView

Created 4 years ago by PeppeHow-tos2 comments – viewed 17,246 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.

checkBox in CGridview

Created 2 years ago by n-rOthers1 comment – viewed 17,232 times – ( +1 / -1 ) – version 1.1
some when you need to add checkbox in cgridview and change state of selected rows by additianal parameters. in view :

Open Dialog from ajax content

Created 4 years ago by TouzasHow-tos1 comment – viewed 17,115 times – ( +4 / -2 ) – version 1.1
This tutorial will show you how to create Ajax dialog. It's very simple code.

PHP built-in server integration

Created 2 years ago by HeadshakerHow-tos1 comment – viewed 17,091 times – ( -1 ) – version 2.0
I was playing around with another PHP framework which I didn't really liked anyway but it had simple and nice integration for PHP built in web server so I decided to write one for Yii (since this is my primary PHP framework)