Wiki

Sorted by ratingX
Displaying 171-180 of 786 result(s).

Install specific Yii2 vendor extension & dependency without updating other packages.

Created 3 years ago by Kartik VTips0 comments – viewed 18,446 times – ( +40 / -7 ) – version 2.0
The tips here are for advanced usages of composer and its assumed you have read about using composer and have a knowledge of your vendor packages to be updated. Let's consider, you want to update only one specific yii2 vendor library, without updating all the other extension packages?

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

Created 6 years ago by JobloTips7 comments – viewed 44,424 times – ( +15 / -1 ) – 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.

Secure password hash storage and a Yii helper extension

Created 5 years ago by fsbTutorials5 comments – viewed 31,702 times – ( +15 / -1 ) – version 1.1
Obsolete

Manage (Target) Language in Multilingual Applications + A Language Selector Widget (i18n)

Created 5 years ago by c@cbaTutorials10 comments – viewed 37,446 times – ( +15 / -1 ) – version 1.1
In case of a multilingual application, one might consider it a reasonable approach to store the preferred language of the user in a session variable, and after that, every time a page is requested, to check this session variable and render the page in the indicated language. This tutorial shows a Yii-way of doing this. We implement an event handler for the onBeginRequest event; as the name of the event suggests, this event handler will be called at the beginning of each request, so its a good place to check whether a language is provided (via post, session or cookie) and set the application language accordingly. We also implement a simple Language-Selector Widget, which can render the language options as ajax-links or as a drop-down list.

Creating a database-driven hierarchical Structure combined with CMenu and superfish

Created 7 years ago by thyseusTutorials9 comments – viewed 49,830 times – ( +15 / -1 ) – version 1.1
Note: Please also take a look at the newer EMenu extension. This works even better that the deprecated CDropDownMenu!
tags: menu

Styling Radio Buttons

Created 6 years ago by Steve FriedlTips5 comments – viewed 54,185 times – ( +15 / -1 ) – version 1.1
The default behavior with radio button lists is ugly, and I figured out mostly how to style them a coupla different ways. I'll used the blog tutorial example (but with my own posting modes):

Integrating HybridAuth directly into Yii without an extension

Created 4 years ago by biz devHow-tos8 comments – viewed 40,929 times – ( +15 / -1 ) – version 1.1
This article tries to explain the steps required in integrating the HybridAuth into Yii directly, without using an extension.

Update/delete model with CJuiDialog (works in CGridView)

Created 6 years ago by ifdatticTutorials6 comments – viewed 68,625 times – ( +15 / -1 ) – version 1.1
This is based on this article.

Yiinitializr: The Library

Created 4 years ago by Antonio RamirezOthers9 comments – viewed 19,734 times – ( +15 / -1 ) – version 1.1
Introduction

CGridView: Update/create records in a CJuiDialog

Created 6 years ago by JobloTips12 comments – viewed 49,518 times – ( +14 / -1 ) – version 1.1
My article Display the full record in a CJuiDialog uses ajax to view a record in dialog on clicking the 'view-icon'.