Showing 421-440 of 826 items.

CKEditor Integration (includes steps for file uploads) - Step by Step

Created 13 years ago by shulme shulme, updated 13 years ago by shulme shulme. 12 comments

Hey guys, I'm hoping other people will find this helpful. Today I went through the process of adding CKEditor to one of my projects, and then integrating KCFinder as the image uploader. It will be used in a CActiveForm, without the use of any crazy weird widgets. All paths are relative, using Yii functions, so this will work no matter where you install. Here it is:

10 0
22
Viewed: 77 108 times
Version: 1.1
Category: How-tos

Multilanguage Lorem Ipsum Text Generator

Created 13 years ago by yasen yasen, updated 13 years ago by yasen yasen. 2 comments

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...

2 0
1
Viewed: 14 730 times
Version: 1.1
Category: How-tos

Syncing sessions between Yii and KCFinder

Created 13 years ago by Thanasis Fotis Thanasis Fotis, updated 12 years ago by Boaz Boaz. 8 comments

>Info: As KCFinder's documentation mentions, if your application (Yii in our case) session handling is using the PHP environment configuration - meaning no change in session handling at all, then no change is needed also on KCFinder side to be able to use this session and thus have this simple interface between your Yii webapp and KCFinder. If t...

1 0
6
Viewed: 19 647 times
Version: 1.1
Category: How-tos

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

Created 13 years ago by Xgamer99 Xgamer99, updated 13 years ago by Maurizio Domba Cerin Maurizio Domba Cerin. 3 comments

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 o...

1 0
7
Viewed: 25 030 times
Version: 1.1
Category: Tips

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

Created 13 years ago by skworden skworden, updated 13 years ago by skworden skworden. 4 comments

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.