Wiki

Sorted by viewsX
Displaying 171-180 of 774 result(s).

Single sign on across multiple subdomains

Created 5 years ago by ianaréHow-tos10 comments – viewed 41,496 times – ( +32 ) – version 1.1
This had me stumped for a while so I figured it would be nice to share here to avoid others the grief.

CGridView: Display the full record (actionView) in a CJuiDialog

Created 4 years ago by JobloTips7 comments – viewed 41,434 times – ( +15 ) – version 1.1
If you show a model (with a lot of attributes) partially in a CGridView, it can be helpful when the user can take a quick look at the full record with all attributes without displaying the view as a page and afterwards returning back to the gridview.

Adding Yii Search to Your Browser Search Box

Created 5 years ago by qiangTips1 comment – viewed 41,228 times – ( +28 ) – version 1.1
The official Yii project site now supports OpenSearch. This means you can customize your browser's search box to enable direct search of the content in yiiframework.com. For example, by entering a Yii class name in the browser's search box, the corresponding class API page will be shown in the browser.
tags: search

Beginner / Intro Tutorials (please add to / update this list)

Created 6 years ago by Ivo RoperTutorials1 comment – viewed 41,133 times – ( +5 ) – version 1.1
This is a central location to collect links to "Getting Started" documentation beyond the blog demo and Creating First Yii Application. Please help the community by adding general, introductory links and descriptions to this page.

How to use GridView with AJAX

Created 2 years ago by Antonio RamirezHow-tos6 comments – viewed 40,995 times – ( +14 ) – version 2.0
With the adoption of PJax on Yii2 things  have change quite a bit with GridView when it comes to work with them in AJAX mode. It will probably be confusing at the beginning, but then you will soon realize how powerful the new approach is.
tags: yii2, pjax, widget

File uploads in CForm (Form builder)

Created 4 years ago by Luke JurgsHow-tos2 comments – viewed 40,977 times – ( +12 ) – version 1.1
While there is a reasonable amount of documentation regarding CForm (form builder) and file uploads seperately, there really is not any coverage of both in combination.

How to use a Widget as an Action Provider

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

Filter / Search with CListView

Created 4 years ago by JohnPollardHow-tos9 comments – viewed 40,082 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.

Assigning dynamic roles to a user Using yii Rights module at the time of user creation and using some special advanced features of yii rights

Created 3 years ago by Rajith RTips20 comments – viewed 39,988 times – ( +11 / -8 ) – version 1.1
After Installing Yii Users and Rights to Newly Created Yii app we have to assign dynamic roles to a user at the time of user creation .

How to use nested DB transactions (MySQL 5+, PostgreSQL)

Created 7 years ago by mindehHow-tos6 comments – viewed 39,753 times – ( +46 ) – version 1.1
Original source code and idea are from: PHP, PDO & Nested Transactions.