Sorted by ratingX
Displaying 151-160 of 779 result(s).

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

Created 5 years ago by JobloTips7 comments – viewed 41,975 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.

Secure password hash storage and a Yii helper extension

Created 4 years ago by fsbTutorials5 comments – viewed 30,570 times – ( +15 ) – version 1.1

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

Created 4 years ago by c@cbaTutorials10 comments – viewed 34,810 times – ( +15 ) – 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 6 years ago by thyseusTutorials9 comments – viewed 47,736 times – ( +15 ) – 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 5 years ago by Steve FriedlTips5 comments – viewed 49,862 times – ( +15 ) – 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 65,640 times – ( +15 ) – version 1.1
This is based on this article.

Yiinitializr: The Library

Created 3 years ago by Antonio RamirezOthers9 comments – viewed 17,956 times – ( +15 ) – version 1.1

Moving project code outside of webroot (plus multiple project support)

Created 5 years ago by Steve FriedlHow-tos8 comments – viewed 48,304 times – ( +22 / -1 ) – version 1.1
Yii's by-default directory organization works well enough, but there are several steps one can take that improve the security and serviceability of the system, especially in the context of multiple Yii projects on the same machine (including multiple versions of the same project).
tags: config, security

Creating a CSS Driven Drop Down Menu using CMenu

Created 5 years ago by blindMoeHow-tos10 comments – viewed 84,093 times – ( +22 / -1 ) – version 1.1
CMenu offers great functionality and the ability to customize just about every aspect of the output. There are many times when I need to create a drop down menu or simply modify the look to make the designers happy. Because this seems to be a common task for me, I figured I would share my code to create a very simple drop down menu that other people could use.

Overcoming removal of client helpers (e.g. ajaxLink) and ClientScript in Yii 2.0

Created 2 years ago by Kartik VFAQs2 comments – viewed 21,077 times – ( +40 / -4 ) – version 2.0
With Yii Framework 2.0, one of the many changes, that Yii 1.x developers will face is removal of all client helpers and revamp of the CClientScript functionality. For example no more CHtml::ajaxLink or Html::ajaxLink. How do you cater to such requirements in Yii 2.0?