Wiki

Displaying 71-80 of 470 result(s).

Syncing sessions between Yii and KCFinder

Created 6 months ago by Thanasis FotisHow-tos5 comments – viewed 2,637 times – ( +1 )
I have been trying to find information on how to sync the sessions between Yii and KCFinder so that the two applications can "communicate" with each other. I managed to find some bits and pieces on the correct approach to use, but not a definite guide or concrete code.

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

Created 6 months ago by kiran sharmaHow-tos1 comment – viewed 3,959 times – ( +4 / -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

Image resize on the fly

Created 6 months ago by TpoxaHow-tos3 comments – viewed 5,559 times – ( +4 )
For example have folder with image resources which are public accessible
tags: yii, image-resize

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Created 6 months ago by Xgamer99Tips3 comments – viewed 4,034 times – ( +1 )
I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it or on the 'select all' checkbox.

Yii shorten common functions with OOP style

Created 6 months ago by pdtkameTips3 comments – viewed 3,726 times – ( +9 / -14 )
This article will show how you can use Yii common functions as shorten OOP function. These functions will help you work with Yii common functions is easier as OOP style.

Cheat Sheet: Displaying Name instead of Numbers and Displaying Alphanumeric instead of numeric values

Created 6 months ago by skwordenHow-tos4 comments – viewed 5,537 times – ( +3 / -1 )
I keep a reference to some simple but painful task if you forget a common or something. I am new to Yii and this took awhile for me to figure out. Everything I read said do this or do that and not a single one worked for me. However, the following did.

pass variables or content block from view file to layout file

Created 6 months ago by yiqing95How-tos0 comments – viewed 5,223 times – ( +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.