Wiki

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

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

Created 3 years ago by Kartik VTips0 comments – viewed 15,871 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 5 years ago by JobloTips7 comments – viewed 43,165 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,202 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 36,255 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 48,856 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 52,405 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):

Update/delete model with CJuiDialog (works in CGridView)

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

Yiinitializr: The Library

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

CGridView: Update/create records in a CJuiDialog

Created 5 years ago by JobloTips12 comments – viewed 48,306 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'.

Eclipse PDT - code-hints, references and other goodies

Created 8 years ago by mindehTutorials2 comments – viewed 30,344 times – ( +14 / -1 ) – version 1.1
Since PHP is dynamically typed language, the way IDE may help you is limited.
tags: IDE