Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 21-30 of 325 result(s).

Multiple-database support in Yii

Created 4 years ago by Steve FriedlHow-tos15 comments – viewed 72,730 times – ( +28 ) – version 1.1
The customary configuration of a Yii application includes just a single database section in the protected/config/main.php file, but it's easy to extend this to support more than one, tying each Model to one of the databases.
tags: Database

How to use an application behavior to maintain runtime configuration

Created 3 years ago by zaccariaHow-tos3 comments – viewed 25,594 times – ( +28 ) – version 1.1
In this tutorial will be explained a method to manage some configuration runtime. This excellent tutorial follows a similar approach, but requires to write a masterclass which all controllers are supposed to extend, following this wiki you can achieve the same by only editing the configuration.

Filter / Search with CListView

Created 3 years ago by JohnPollardHow-tos7 comments – viewed 33,224 times – ( +28 ) – version 1.1
This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.

Cookie management in Yii

Created 3 years ago by TrejderHow-tos5 comments – viewed 96,226 times – ( +41 / -1 ) – version 1.1
Cookie management in Yii is easy, but may not be so obvious for the beginners to this framework, so I wrote this simple article to clear some doubts out.

How to use a Widget as an Action Provider

Created 3 years ago by Antonio RamirezHow-tos14 comments – viewed 33,189 times – ( +27 ) – version 1.1
As written on the API docs: An Action Provider Widget is a widget that has declared several actions by using its 'public static function actions()'. After, a Controller can easily import all its declared actions on its 'public function actions()'.
tags: Widgets, CAction

URL management for Websites with secure and nonsecure pages

Created 2 years ago by qiangHow-tos11 comments – viewed 22,503 times – ( +27 ) – version 1.1
In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.
tags: URL

X-Sendfile - serve large static files efficiently from web applications

Created 4 years ago by Maurizio Domba CerinHow-tos5 comments – viewed 43,066 times – ( +26 ) – version 1.1
Normally when we want users to download a file, that file is put in a folder under the web application root and the web server does the rest.

Authenticating against phpass hashes with Yii

Created 3 years ago by Da:SourcererHow-tos18 comments – viewed 23,730 times – ( +26 ) – version 1.1
Note: This guide is outdated as of Yii v1.1.14 which introduced the CPasswordHelper class. Please use that instead.

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

Created 2 years ago by shulmeHow-tos12 comments – viewed 36,483 times – ( +25 ) – version 1.1
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:

Using CJuiDatePicker for CGridView filter

Created 2 years ago by softarkHow-tos13 comments – viewed 35,869 times – ( +24 ) – version 1.1
We can use a CJuiDatePicker for a CGridView inline filter.