Wiki

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

Enforcing "You must agree" requirements in forms

Created 5 years ago by Steve FriedlHow-tos3 comments – viewed 21,692 times – ( +29 ) – version 1.1
Checkboxes have two possible values, true and false, but some applications require that the user select one particular value before proceeding. Examples might be:
tags: validation

URL management for Websites with secure and nonsecure pages

Created 3 years ago by qiangHow-tos12 comments – viewed 31,266 times – ( +29 ) – 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

Filter / Search with CListView

Created 4 years ago by JohnPollardHow-tos9 comments – viewed 39,806 times – ( +29 ) – 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 5 years ago by TrejderHow-tos5 comments – viewed 126,123 times – ( +43 / -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 an application behavior to maintain runtime configuration

Created 5 years ago by zaccariaHow-tos3 comments – viewed 30,082 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.

Using CJuiDatePicker for CGridView filter

Created 4 years ago by softarkHow-tos21 comments – viewed 47,201 times – ( +27 ) – version 1.1
We can use a CJuiDatePicker for a CGridView inline filter.

How to use a Widget as an Action Provider

Created 5 years ago by Antonio RamirezHow-tos15 comments – viewed 39,799 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

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

Created 5 years ago by Maurizio Domba CerinHow-tos5 comments – viewed 55,976 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.

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

Created 3 years ago by shulmeHow-tos12 comments – viewed 51,938 times – ( +26 ) – 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:

Authenticating against phpass hashes with Yii

Created 4 years ago by Da:SourcererHow-tos18 comments – viewed 26,614 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.