Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 61-70 of 183 result(s).

Setting and getting systemwide static parameters

Created 2 years ago by Steve FriedlHow-tos2 comments – viewed 29,220 times – ( +10 )
Occasionally one wishes to set systemwide parameters for an application, such as a contact address for email, an application name, or setting an option that guides major behavior. Yii provides for setting of static parameters in the configuration file, and this article talks about how to do it conveniently.
tags: config

yii vim eclimd how it works

Created 2 years ago by RusAlexHow-tos1 comment – viewed 5,454 times – ( +10 )
I want to create a wiki page, and therefore im opening this discussion on this forum, for answering all questions and see other opinions, how do you use vim with yii.
tags: vim, eclimd, vimrc

Configuring controller access rules to default-deny

Created 2 years ago by Steve FriedlHow-tos1 comment – viewed 29,603 times – ( +10 )
Starting with the blog tutorial, Yii developers are familiar with the notion of access rules defined in the controller, where the actions are allowed or denied depending on the user's name or role.

YiiBooster: How to implement files and images upload on TbRedactor Widget

Created about a month ago by Antonio RamirezHow-tos2 comments – viewed 4,676 times – ( +10 )
I have been requested to provide a tutorial on how to use the file upload feature of the TbRedactor widget, and even though I am no longer supporting the library due that the work belongs to Clevertech, I feel that I owe that to the Yii developers. So, here is the  tutorial.

Using filters with CGridView and CArrayDataProvider

Created about a year ago by marcovtwoutHow-tos12 comments – viewed 24,536 times – ( +10 )
Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.

How to extend CFormatter, add i18n support to booleanFormat and use it in CDetailView

Created about a year ago by c@cbaHow-tos2 comments – viewed 5,424 times – ( +9 )
As you know, the CDetailView widget displays details of a single model. If no formatting is specified, boolean values that are stored in the database as 0 and 1, are represented in the detail view as 0 and 1. If formatted as boolean, they are represented as 'No' and 'Yes'. We want to add i18n support, so that Yes and No appear in the current language.

Simple Share Widget for Facebook, twitter and google+

Created about a year ago by softarkHow-tos0 comments – viewed 9,669 times – ( +9 )
This widget will show a Facebook "like" button and "comments" box together with "tweet" button and "google plusone" button on your page.

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

Created 5 months ago by shulmeHow-tos2 comments – viewed 8,073 times – ( +9 )
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:

Converting an Artisteer Theme to Yii

Created 2 years ago by bgleeHow-tos3 comments – viewed 14,993 times – ( +9 )
There are two approaches to converting an Artisteer theme. The first is to simply copy an existing Artisteer – based Yii theme, overlay the CSS and images, then make any necessary tweaks to the layout files. This is undoubtedly the fastest route, but won't teach you as much as doing it from scratch. That's ok. Sometimes getting the job done is the top priority. The second approach is more general and will apply to some extent to other HTML templates that you may want to convert. I'll be covering the first approach in detail, while the second will be more of a general discussion.