Wiki

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

Multiple-database support in Yii

Created 6 years ago by Steve FriedlHow-tos18 comments – viewed 104,994 times – ( +29 ) – 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

Enforcing "You must agree" requirements in forms

Created 6 years ago by Steve FriedlHow-tos3 comments – viewed 23,409 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 4 years ago by qiangHow-tos12 comments – viewed 35,817 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 5 years ago by JohnPollardHow-tos9 comments – viewed 42,363 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 6 years ago by TrejderHow-tos5 comments – viewed 137,731 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 31,797 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.

Render Form in popup via AJAX (Create and Update) with ajax validation & Also load any page via ajax Yii 2.0 (2.3)

Created 2 years ago by skwordenHow-tos13 comments – viewed 116,432 times – ( +27 ) – version 2.0
There are a few issues with the other solutions I originally used that I found from other wikis. I address the issues I had in this much simpler and shorter way. I am also going to explain what is going into way more detail than others to help people understand what's going on.

Using CJuiDatePicker for CGridView filter

Created 5 years ago by softarkHow-tos21 comments – viewed 50,985 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 6 years ago by Antonio RamirezHow-tos15 comments – viewed 42,381 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 6 years ago by Maurizio Domba CerinHow-tos5 comments – viewed 62,533 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.